2016-12-26 15:44:53 +01:00
|
|
|
.PHONY: archive
|
2016-12-12 14:52:57 +01:00
|
|
|
.PHONY: docker-image
|
|
|
|
.PHONY: docker-push
|
|
|
|
.PHONY: docker-destroy
|
|
|
|
.PHONY: docker-run
|
2016-12-12 14:59:01 +01:00
|
|
|
.PHONY: js
|
2016-12-26 15:44:53 +01:00
|
|
|
.PHONY: unit-test-sqlite
|
2016-12-26 21:07:18 +01:00
|
|
|
.PHONY: unit-test-postgres
|
2017-01-10 05:26:45 +01:00
|
|
|
.PHONY: unit-test-mysql
|
2016-12-29 02:52:58 +01:00
|
|
|
.PHONY: sync-locales
|
|
|
|
.PHONY: find-locales
|
2016-12-12 14:52:57 +01:00
|
|
|
|
2017-01-03 01:44:13 +01:00
|
|
|
CSS_FILE = assets/css/app.min.css
|
2017-01-03 01:21:15 +01:00
|
|
|
JS_FILE = assets/js/app.min.js
|
2016-07-31 00:01:37 +02:00
|
|
|
CONTAINER = miniflux
|
|
|
|
IMAGE = miniflux/miniflux
|
|
|
|
TAG = latest
|
|
|
|
|
|
|
|
docker-image:
|
|
|
|
@ docker build -t $(IMAGE):$(TAG) .
|
|
|
|
|
|
|
|
docker-push:
|
|
|
|
@ docker push $(IMAGE)
|
|
|
|
|
|
|
|
docker-destroy:
|
|
|
|
@ docker rmi $(IMAGE)
|
|
|
|
|
|
|
|
docker-run:
|
|
|
|
@ docker run --rm --name $(CONTAINER) -P $(IMAGE):$(TAG)
|
|
|
|
|
2017-01-03 01:44:13 +01:00
|
|
|
css: $(CSS_FILE)
|
|
|
|
|
|
|
|
$(CSS_FILE): assets/css/app.css
|
|
|
|
@ yarn install || npm install
|
|
|
|
@ cat $^ | ./node_modules/.bin/cleancss -o $@
|
|
|
|
|
2016-12-12 14:59:01 +01:00
|
|
|
js: $(JS_FILE)
|
|
|
|
|
2017-01-03 01:21:15 +01:00
|
|
|
$(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 - > $@
|
2016-12-12 14:59:01 +01:00
|
|
|
@ echo "Miniflux.App.Run();" >> $@
|
2016-07-31 00:29:54 +02:00
|
|
|
|
|
|
|
# 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
|
2016-12-26 15:44:53 +01:00
|
|
|
|
2016-12-29 21:45:09 +01:00
|
|
|
functional-test-sqlite:
|
|
|
|
@ rm -f data/db.sqlite
|
|
|
|
@ ./vendor/bin/phpunit -c tests/phpunit.functional.sqlite.xml
|
|
|
|
|
2016-12-26 15:44:53 +01:00
|
|
|
unit-test-sqlite:
|
2016-12-26 21:07:18 +01:00
|
|
|
@ ./vendor/bin/phpunit -c tests/phpunit.unit.sqlite.xml
|
|
|
|
|
|
|
|
unit-test-postgres:
|
|
|
|
@ ./vendor/bin/phpunit -c tests/phpunit.unit.postgres.xml
|
|
|
|
|
2017-01-10 05:26:45 +01:00
|
|
|
unit-test-mysql:
|
|
|
|
@ ./vendor/bin/phpunit -c tests/phpunit.unit.mysql.xml
|
|
|
|
|
2016-12-29 02:52:58 +01:00
|
|
|
sync-locales:
|
|
|
|
@ php scripts/sync-locales.php
|
|
|
|
|
|
|
|
find-locales:
|
|
|
|
@ php scripts/find-locales.php
|