💾 Archived View for danielc.dev › using-gnu-m4-for-basic-stuff.gmi captured on 2023-04-27 at 07:42:16. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

-=-=-=-=-=-=-

Using GNU m4 for basic stuff

Dec 24 2021

---

How do I use ` normally??

define(\`LQ',\`changequote(<,>)\`dnl'
changequote\`'')

Use `LQ()` to use it.

How do I define stuff?

Via cli, similar to cc. `-D FOO value`

define(MENU_ICON, \`assets/menu.png')

How do if ifdef?

ifdef(\`DESKTOP', \`
	define(MENU_ICON, \`assets/menu.png')
	define(CLOSE_ICON, \`assets/back.png')
')

How do I include?

include(main.css)

So should I use m4?

No. Don't walk, **run** away from m4. It's trash.