X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=1d27cfa13b0d9be73d0345edf7a9df18e84cc62c;hb=6de3554bcf182f39a8d39f3159958e4ee8c474cd;hp=b9be89428386c4fd79caaa782b039307a2880bb3;hpb=14d1288d271ae14678513d06a8602f1d3d929245;p=rrq%2Fhourglass.git diff --git a/Makefile b/Makefile index b9be894..1d27cfa 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,33 @@ MAIN = command.lsp LSP = $(filter-out $(MAIN),$(wildcard *.lsp)) +BIN = hourglass hourglass-web hourglass-site +DOCS = hourglass-guide.html hourglass-guide.pdf +IMGS = $(wildcard *.png) +OTHER = setup.sh hourglass.conf +VERSION = 0.1 + +dist: hourglass-$(VERSION).tgz hourglass: $(MAIN) $(LSP) packnl -w $@ $^ +hourglass-web: manager siteconfig.lsp + $(MAKE) -C manager + mv manager/$@ $@ + +hourglass-site: sitetool + $(MAKE) -C sitetool + mv sitetool/sitetool $@ + +hourglass-$(VERSION).tgz: $(BIN) $(OTHER) $(DOCS) $(IMGS) + tar czf $@ $^ + +%.html: %.adoc + asciidoctor $< > $@ + +%.pdf: %.adoc | $(IMGS) + asciidoctor-pdf $< > $@ + +clean: + $(MAKE) -C manager clean + rm -f $(BIN) hourglass-$(VERSION).tgz