Merge pull request #584

Refactoring the `js` Makefile target
This commit is contained in:
Frédéric Guillot 2016-12-12 22:06:47 -05:00 committed by GitHub
commit 1d2c1b514e

View File

@ -1,3 +1,10 @@
.PHONY: docker-image
.PHONY: docker-push
.PHONY: docker-destroy
.PHONY: docker-run
.PHONY: archive
.PHONY: js
JS_FILE = assets/js/all.js
CONTAINER = miniflux
IMAGE = miniflux/miniflux
@ -15,11 +22,16 @@ docker-destroy:
docker-run:
@ docker run --rm --name $(CONTAINER) -P $(IMAGE):$(TAG)
js:
@ rm -f ${JS_FILE}
@ echo "/* AUTO GENERATED FILE, DO NOT MODIFY THIS FILE, USE 'make js' */" > ${JS_FILE}
@ cat assets/js/app.js assets/js/feed.js assets/js/item.js assets/js/event.js assets/js/nav.js >> ${JS_FILE}
@ echo "Miniflux.App.Run();" >> ${JS_FILE}
js: $(JS_FILE)
$(JS_FILE): assets/js/app.js \
assets/js/feed.js \
assets/js/item.js \
assets/js/event.js \
assets/js/nav.js
@ echo "/* AUTO GENERATED FILE, DO NOT MODIFY THIS FILE, USE 'make js' */" > $@
@ cat $^ >> $@
@ echo "Miniflux.App.Run();" >> $@
# Build a new archive: make archive version=1.2.3 dst=/tmp
archive: