blob: adf0dfd2d7cf307bfacaf97300191cac2eec4e2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/make -f
SHELL = bash -o pipefail
pkgbuilds = $(sort $(wildcard *.PKGBUILD))
config.mw: .var.pkgbuilds $(patsubst %.PKGBUILD,%.mw,$(pkgbuilds))
{ \
echo '=== infrastructure/management ===' && \
cat $(filter-out config-service-%,$(sort $(filter %.mw,$^))) && \
echo '=== services ===' && \
cat $(filter config-service-%,$(sort $(filter %.mw,$^))) && \
:; } > $@
%.mw: %.PKGBUILD ./pkgbuild2mw
< $< ./pkgbuild2mw > $@
.var.%: FORCE
@printf '%s' '$(subst ','\\'',$($*))' | sed 's/^/#/' | ./write-ifchanged $@
-include $(wildcard .var.*)
.PHONY: FORCE
.SECONDARY:
|