FRONTEND_BIN=frontend/armadillo.js
# Default target, used to produce the backend and uncompiled frontend.
FRONTEND_BIN=frontend/armadillo.js
# Default target, used to produce the backend and uncompiled frontend.
$(FRONTEND_BIN): $(FRONTEND_SOURCES)
echo $(foreach f,$^,"document.write('<script src="fe/$(notdir $f)"></script>');\n") > $(FRONTEND_BIN)
$(FRONTEND_BIN): $(FRONTEND_SOURCES)
echo $(foreach f,$^,"document.write('<script src="fe/$(notdir $f)"></script>');\n") > $(FRONTEND_BIN)
echo "$(VERSION_NAMESPACE).BUILD = $(shell gitcrement next);" >> $(VERSION_FILE)
echo "$(VERSION_NAMESPACE).STAMP = $(shell date +%s);" >> $(VERSION_FILE)
echo "$(VERSION_NAMESPACE).BUILD = $(shell gitcrement next);" >> $(VERSION_FILE)
echo "$(VERSION_NAMESPACE).STAMP = $(shell date +%s);" >> $(VERSION_FILE)
-# Copies the version template to the source and commits it.
-stamp: $(VERSION_FILE)
- cp $(VERSION_FILE) $(VERSION_SOURCE)
+# Copies the version template to the source.
+$(VERSION_SOURCE): $(VERSION_FILE)
+ cp $< $@
+
+# Commits the version source and the frontend bin.
+stamp:
git commit $(VERSION_SOURCE) $(FRONTEND_BIN) \
--author='Armadillo Build Script <armadillo@bluestatic.org>' \
-m 'Stamp version.js @ $(shell gitcrement current)'
git commit $(VERSION_SOURCE) $(FRONTEND_BIN) \
--author='Armadillo Build Script <armadillo@bluestatic.org>' \
-m 'Stamp version.js @ $(shell gitcrement current)'