-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (19 loc) · 748 Bytes
/
Copy pathMakefile
File metadata and controls
27 lines (19 loc) · 748 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
26
27
WCF_FILES = $(shell find files_wcf -type f)
TS_FILES = $(shell find ts/ -type f |sed 's/ts$$/js/g;s!^ts/!files_wcf/js/!')
all: be.bastelstu.wcf.push.tar
be.bastelstu.wcf.push.tar: files_wcf.tar files_update_212.tar *.xml LICENSE
tar cvf $@ --numeric-owner --exclude-vcs -- $^
files_wcf.tar: $(WCF_FILES) $(TS_FILES)
files_update_212.tar: files_update_212/acp/be.bastelstu.wcf.push_2.1.2.php
%.tar:
tar cvf $@ --numeric-owner --exclude-vcs -C $* -- $(^:$*/%=%)
files_wcf/js/%.js: ts/%.ts tsconfig.json
yarn run tsc
clean:
-find files_wcf/js/ -iname '*.js' -delete
-find files_wcf/js/ -iname '*.js.map' -delete
-rm -f files_wcf.tar
-rm -f files_update_212.tar
distclean: clean
-rm -f be.bastelstu.wcf.push.tar
.PHONY: distclean clean