summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2013-07-06 14:49:45 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2013-07-06 14:49:45 +0200
commit1a206b304968f4c5b2bd96ec5e67c2bf825515f1 (patch)
treec0b4d389a46015415480ba26149b62fd37535823 /Makefile
parent080dcab851d3b07415ba15db8c92757fbd57bee3 (diff)
downloadarch-packages-1a206b304968f4c5b2bd96ec5e67c2bf825515f1.tar.gz
add makefile for batch building
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile52
1 files changed, 52 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..fc8cc2b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,52 @@
+# packages
+SLNUNICODE = slnunicode-git
+LUAMD5 = lua-md5-git
+
+# collections
+PKGS = $(SLNUNICODE) $(LUAMD5)
+VERFY = $(PKGS:%=verify-%)
+SOURCE = $(PKGS:%=source-%)
+
+MAKEPKG = $(shell which makepkg)
+
+# collective targets
+
+all: $(PKGS)
+
+$(PKGS):
+ @echo "==> building package $@ <=="
+ cd $@ && $(MAKEPKG) --force
+ @echo
+
+verify: $(VERFY)
+
+$(VERFY):
+ @echo "==> verifying package $(@:verify-%=%) <=="
+ cd $(@:verify-%=%) && $(MAKEPKG) --verify --force
+ @echo
+
+source: $(SOURCE)
+
+$(SOURCE):
+ @echo "==> building source package $(@:source-%=%) <=="
+ cd $(@:source-%=%) && "$(MAKEPKG)" --source --force
+ @echo
+
+# individual targets
+slnunicode: $(SLNUNICODE)
+luamd5: $(LUAMD5)
+
+info:
+ @echo settings:
+ @echo "MAKEPKG = $(MAKEPKG)"
+ @echo
+ @echo packages:
+ @echo "PKGS = $(PKGS)"
+ @echo
+ @echo target categories:
+ @echo "all verify source"
+ @echo
+ @echo package targets:
+ @echo "slnunicode" "luamd5"
+
+.PHONY: info all $(PKGS) clean $(VERFY) source $(SOURCE)