Philipp Gesang avatar Philipp Gesang committed 300782c

add makefile for batch building

Comments (0)

Files changed (1)

+# 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)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.