-
Notifications
You must be signed in to change notification settings - Fork 32
/
Makefile
28 lines (20 loc) · 921 Bytes
/
Makefile
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
28
VERSION=4.1.2
CPP = cpp
SED = sed
CPPFLAGS = -P -C -x c -w -undef -nostdinc -std=c99 -fdollars-in-identifiers -MD -MP -iquote src -iquote .
RM = rm -f
all: youtube-video-download.user.js youtube-video-download-uso.user.js
.PHONY: all
-include *.d
youtube-video-download.user.js: src/youtube-video-download.js languages.js styles.css.js styles-rtl.css.js
$(SED) "s/VERSION/$(VERSION)/" $< | $(CPP) $(CPPFLAGS) -MT $@ -o $@
./calculate-hash.sh $@
youtube-video-download-uso.user.js: src/youtube-video-download-uso.js languages.js styles.css.js styles-rtl.css.js
$(SED) "s/VERSION/$(VERSION)/" $< | $(CPP) $(CPPFLAGS) -MT $@ -o $@
languages.js: lang/*.json
./build-languages.sh > $@
%.css.js: src/%.css
./build-style.sh $< > $@
clean:
-$(RM) languages.js styles.css.js styles-rtl.css.js youtube-video-download.user.js youtube-video-download-uso.user.js *.d youtube-video-download.user.js.sha1sum
.PHONY: clean