MAIN = command.lsp
LSP = $(filter-out $(MAIN),$(wildcard *.lsp))
BIN = hourglass hourglass-web
-SH = setup.sh
+OTHER = setup.sh hourglass.conf
VERSION = 0.1
-dist: $(BIN) $(SH)
- tar czf hourglass-$(VERSION).tgz $(BIN) $(SH)
+dist: hourglass-$(VERSION).tgz
hourglass: $(MAIN) $(LSP)
packnl -w $@ $^
hourglass-web:
- $(MAKE) -C manager && mv manager/$@ $@
+ $(MAKE) -C manager
+ mv manager/$@ $@
+
+hourglass-$(VERSION).tgz: $(BIN) $(OTHER)
+ tar czf $@ $^
clean:
- rm -f $(BIN)
+ rm -f $(BIN) hourglass-$(VERSION).tgz