Diff

Makefile @ 370:75e7917761c0

Makefile, buildscripts/squish: Add Makefile and squish to the repo
author Matthew Wild <mwild1@gmail.com>
date Thu, 31 Dec 2015 21:12:00 +0000
child 371:88bcf9fbdd07
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile	Thu Dec 31 21:12:00 2015 +0000
@@ -0,0 +1,23 @@
+SQUISH=./buildscripts/squish
+PROSODY_URL=https://hg.prosody.im/0.9/raw-file/tip/
+SOURCE_FILES=$(shell $(SQUISH) --list-files)
+MISSING_FILES=$(shell $(SQUISH) --list-missing-files)
+
+all: verse.lua
+
+verse.lua: $(SOURCE_FILES)
+	./buildscripts/squish
+
+clean:
+	rm verse.lua
+
+$(MISSING_FILES):
+	mkdir -p "$(@D)"
+	wget "$(PROSODY_URL)$@" -O "$@"
+
+rsm.lib.lua:
+	wget https://hg.prosody.im/prosody-modules/raw-file/tip/mod_mam/rsm.lib.lua -O rsm.lib.lua
+
+release: $(MISSING_FILES)
+
+.PHONY: all release clean