blob: 00f2d780047756dacc7a526b34748d691253ab11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# packages
SLNUNICODE = slnunicode-git
LUAMD5 = lua-md5-git
SWIG = swig-git
LUASEC = luasec-prosody-git
LUAWORK = lua5.3
# collections
PKGS = $(SLNUNICODE) $(LUAMD5) $(SWIG) $(LUASEC) $(LUAWORK)
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)
swig: $(SWIG)
luasec: $(LUASEC)
lua5.3: $(LUAWORK)
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" "swig" "luasec" "lua5.3"
.PHONY: info all $(PKGS) clean $(VERFY) source $(SOURCE)
|