-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (17 loc) · 757 Bytes
/
Makefile
File metadata and controls
25 lines (17 loc) · 757 Bytes
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
FILES = $(shell find files -type f)
WCF_FILES = $(shell find files_wcf -type f)
all: be.bastelstu.max.wcf.pushNotification.tar be.bastelstu.max.wcf.pushNotification.tar.gz
be.bastelstu.max.wcf.pushNotification.tar.gz: be.bastelstu.max.wcf.pushNotification.tar
gzip -9 < $< > $@
be.bastelstu.max.wcf.pushNotification.tar: files.tar files_wcf.tar *.xml LICENSE language/*.xml
tar cvf be.bastelstu.max.wcf.pushNotification.tar --numeric-owner --exclude-vcs -- $^
files.tar: $(FILES)
files_wcf.tar: $(WCF_FILES)
%.tar:
tar cvf $@ --numeric-owner --exclude-vcs -C $* -- $(^:$*/%=%)
clean:
-rm -f files.tar
distclean: clean
-rm -f be.bastelstu.max.wcf.pushNotification.tar
-rm -f be.bastelstu.max.wcf.pushNotification.tar.gz
.PHONY: distclean clean