-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (18 loc) · 823 Bytes
/
Makefile
File metadata and controls
26 lines (18 loc) · 823 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
WCF_FILES = $(shell find files_wcf -type f -not -path 'files_wcf/acp/be.bastelstu.wcf.nodePush/node_modules/*')
TS_FILES = $(shell find ts/ -type f |sed 's/ts$$/js/g;s!^ts/!files_wcf/js/!')
all: be.bastelstu.wcf.nodePush.tar
be.bastelstu.wcf.nodePush.tar: files_wcf.tar *.xml LICENSE language/*.xml
tar cvf $@ --numeric-owner --exclude-vcs -- $^
files_wcf.tar: $(WCF_FILES) $(TS_FILES)
tar cvf files_wcf.tar --numeric-owner --exclude-vcs --transform='s,files_wcf/,,' -- $^
%.tar:
tar cvf $@ --numeric-owner --exclude-vcs -C $* -- $(^:$*/%=%)
files_wcf/js/%.js files_wcf/js/%.js.map: ts/%.ts tsconfig.json
npx tsc
clean:
-find files_wcf/js/ -iname '*.js' -delete
-find files_wcf/js/ -iname '*.js.map' -delete
-rm -f files_wcf.tar
distclean: clean
-rm -f be.bastelstu.wcf.nodePush.tar
.PHONY: distclean clean