slweb

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

Makefile (525B)


      1 include ../../config.mk
      2 
      3 .SUFFIXES: .html .slw
      4 
      5 .slw.html:
      6 	../../slweb -d $(<D) $< > $@
      7 
      8 all: index.html
      9 
     10 index.html: index.slw bugs.slw description.slw examples.slw inc/copy.slw \
     11 	inc/footer.slw inc/header.slw index.slw options.slw reference.slw \
     12 	seealso.slw
     13 
     14 clean:
     15 	find . -name '*.html' -exec rm {} \;
     16 	rm -f *~
     17 
     18 install: all
     19 	$(INSTALL) -Dm 0644 index.html $(EXDIR)/examples/includes/index.html
     20 
     21 uninstall:
     22 	rm -f $(EXDIR)/includes/index.html
     23 	rmdir $(EXDIR) 2>/dev/null || true
     24 
     25 .PHONY: all clean install uninstall