the problem is of course that php doesn't have any sort of "make static" command. but what it DOES have is a built-in server so that you can test out your php files.
so.
I wrote a makefile that serves a php file over localhost and then downloads from localhost to static html.
might polish this later but here's my work if you want to copy it:
https://github.com/nycki93/xp-php-wget
edit: i knew i'd seen this somewhere! @alterae does this on its site, but with a different makefile strategy: https://git.sr.ht/~alterae/alterae.online/tree/main/item/Makefile
#programming #website #php #makefile
