slweb

Једноставни генератор статичких веб страна
git clone https://git.sr.ht/~strahinja/slweb
Дневник | Датотеке | Референце | ПРОЧИТАЈМЕ | ЛИЦЕНЦА

Makefile (529B)


      1 include ../config.mk
      2 
      3 .SUFFIXES: .html .slw
      4 
      5 .slw.html:
      6 	../slweb -d $(<D) $< > $@
      7 
      8 all: $(HTMLS)
      9 	cd includes && make -e all
     10 
     11 clean:
     12 	cd includes && make -e clean && cd -
     13 	find . -name '*.html' -exec rm {} \;
     14 	rm -f *~
     15 
     16 install: all
     17 	find . -type f \( -name '*.slw' -o -name '*.html' -o -name '*.css' \) \
     18 		-exec sh -c 'umask 022; \
     19 		$(INSTALL) -Dm 0644 {} $(EXDIR)/{}' shell \;
     20 
     21 uninstall:
     22 	find $(EXDIR) -type f -exec rm {} \; || true
     23 	find $(EXDIR) -depth -type d -exec rmdir {} \; || true
     24 
     25 .PHONY: clean install uninstall