diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index ce976fa..0000000 --- a/Makefile +++ /dev/null @@ -1,30 +0,0 @@ -SHELL = /bin/bash - -all: config.db -.PHONY: all - -clean: - rm -f -- $(filter-out $(pkgfiles),$(wildcard *.pkg.tar.xz)) -.PHONY: clean - -pkgbuilds = $(sort $(wildcard *.PKGBUILD)) -$(foreach p,$(pkgbuilds), $(eval $(shell BUILDFILE=$(abspath $p); . "$$BUILDFILE"; echo $(patsubst %.PKGBUILD,%,$p).pkgfile=$$pkgname-$$pkgver-$$pkgrel-any.pkg.tar.xz))) -$(foreach p,$(patsubst %.PKGBUILD,%,$(pkgbuilds)), \ - $(eval pkgfiles += $($p.pkgfile)) \ - $(eval $($p.pkgfile): $p.PKGBUILD) ) - -%.pkg.tar.xz: common.sh - makepkg -d -p $(filter %.PKGBUILD,$^) - -%.db %.db.tar.gz %.files %.files.tar.gz: .var.pkgfiles $(pkgfiles) - rm -f $*.db $*.db.tar.gz $*.files $*.files.tar.gz - repo-add $*.db.tar.gz $(filter %.pkg.tar.xz,$^) - touch --no-create --no-dereference $*.db $*.db.tar.gz $*.files $*.files.tar.gz - -.var.pkgfiles: $(pkgbuilds) - -.var.%: FORCE - @printf '%s' '$(subst ','\\'',$($*))' | sed 's/^/#/' | ./write-ifchanged $@ --include $(wildcard .var.*) -.PHONY: FORCE -.SECONDARY: |