commit a1dc0e2c17a79704346ee752c20e0dd4e9cd273f parent 6a7ec69dc5adffbd885408c207154ec0a62f5c2b Author: lostd <lostd@2f30.org> Date: Thu, 20 Feb 2014 14:18:23 +0200 Reorder to make more readable Diffstat:
M | Makefile | | | 34 | +++++++++++++++++----------------- |
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/Makefile b/Makefile @@ -3,13 +3,6 @@ TARG = /var/www/$(NAME) BASE = "/" #BASE = "$(PWD)/" # uncomment for devel only -DHEADER = header.dhtml -DFOOTER = footer.dhtml -SHEADER = header.shtml -SFOOTER = footer.shtml - -.SUFFIXES: .dhtml .shtml .md .html - MENUPAGES = home.html lectures.html guides.html radio.html PAGES = $(MENUPAGES) \ lectures/lecture0.html \ @@ -24,6 +17,23 @@ EXTRA = css divzerokey.png favicon.ico index.html \ all: $(PAGES) ln -sf home.html index.html +package: all + tar -cvzf $(NAME).tar.gz $(PAGES) $(EXTRA) + +install: package + mkdir -p $(TARG) + tar -xzf $(NAME).tar.gz -C $(TARG) + +clean: + rm -f $(PAGES) $(NAME).tar.gz index.html + +.SUFFIXES: .dhtml .shtml .md .html + +DHEADER = header.dhtml +DFOOTER = footer.dhtml +SHEADER = header.shtml +SFOOTER = footer.shtml + .shtml.html: $(DHEADER) $(DFOOTER) cat $(DHEADER) | ./config.sh $@ $(BASE) $(MENUPAGES) > $(SHEADER) cat $(DFOOTER) | ./config.sh $@ $(BASE) $(MENUPAGES) > $(SFOOTER) @@ -35,13 +45,3 @@ all: $(PAGES) cat $(DFOOTER) | ./config.sh $@ $(BASE) $(MENUPAGES) > $(SFOOTER) markdown $< | cat $(SHEADER) - $(SFOOTER) > $@ rm $(SHEADER) $(SFOOTER) - -package: all - tar -cvzf $(NAME).tar.gz $(PAGES) $(EXTRA) - -install: package - mkdir -p $(TARG) - tar -xzf $(NAME).tar.gz -C $(TARG) - -clean: - rm -f $(PAGES) $(NAME).tar.gz index.html