~alterae/alterae.srht.site

6fc13376003c7570caad50b8669fb8e9f6e2a8ad — Michelle S 2 years ago 45ab9f7
Merge separate build scripts into Makefile

Evidently you _can_ use shell expansions in Makefiles, you just have to
escape the dollar sign with another dollar sign.  This simplifies things
dramatically and makes everything a lot cleaner.
3 files changed, 2 insertions(+), 8 deletions(-)

M Makefile
D publish
D serve
M Makefile => Makefile +2 -2
@@ 5,10 5,10 @@ public: clean
	zola build

upload: site.tar.gz
	./publish
	curl --oauth2-bearer $$(bat ~/.srht-token) -Fcontent=@site.tar.gz https://pages.sr.ht/publish/alterae.srht.site

clean:
	rm -rf public site.tar.gz

serve: clean
	./serve
\ No newline at end of file
	zola serve --interface 0.0.0.0 --base-url $$(hostname -f)

D publish => publish +0 -3
@@ 1,3 0,0 @@
#!/usr/bin/bash

curl --oauth2-bearer $(bat ~/.srht-token) -Fcontent=@site.tar.gz https://pages.sr.ht/publish/alterae.srht.site

D serve => serve +0 -3
@@ 1,3 0,0 @@
#!/usr/bin/bash

zola serve --interface 0.0.0.0 --base-url "$(hostname -f)"
\ No newline at end of file