Daniel's Stuff

RSS

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)

Back