💾 Archived View for petabyt.dev › using-gnu-m4-for-basic-stuff.gmi captured on 2022-03-01 at 15:11:37. Gemini links have been rewritten to link to archived content

View Raw

More Information

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

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)