forked from dysosmus/miniflux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (44 loc) · 1.29 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
.PHONY: archive
.PHONY: docker-image
.PHONY: js
.PHONY: unit-test-sqlite
.PHONY: unit-test-postgres
.PHONY: unit-test-mysql
.PHONY: sync-locales
.PHONY: find-locales
CSS_FILE = assets/css/app.min.css
JS_FILE = assets/js/app.min.js
IMAGE = miniflux/miniflux
TAG = latest
docker-image:
@ ./hooks/build
css: $(CSS_FILE)
$(CSS_FILE): assets/css/app.css
@ npm install
@ cat $^ | ./node_modules/.bin/cleancss -o $@
js: $(JS_FILE)
$(JS_FILE): assets/js/src/app.js \
assets/js/src/feed.js \
assets/js/src/item.js \
assets/js/src/event.js \
assets/js/src/nav.js
@ yarn install || npm install
@ ./node_modules/.bin/jshint assets/js/src/*.js
@ cat $^ | node_modules/.bin/uglifyjs - > $@
@ echo "Miniflux.App.Run();" >> $@
# Build a new archive: make archive version=1.2.3 dst=/tmp
archive:
@ git archive --format=zip --prefix=miniflux/ v${version} -o ${dst}/miniflux-${version}.zip
functional-test-sqlite:
@ rm -f data/db.sqlite
@ ./vendor/bin/phpunit -c tests/phpunit.functional.sqlite.xml
unit-test-sqlite:
@ ./vendor/bin/phpunit -c tests/phpunit.unit.sqlite.xml
unit-test-postgres:
@ ./vendor/bin/phpunit -c tests/phpunit.unit.postgres.xml
unit-test-mysql:
@ ./vendor/bin/phpunit -c tests/phpunit.unit.mysql.xml
sync-locales:
@ php scripts/sync-locales.php
find-locales:
@ php scripts/find-locales.php