diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4d74a22 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +BUILD ?= prod + +frontend: + cd frontend && $(MAKE) clean ; $(MAKE) BUILD=$(BUILD) + +frontend-watch: + cd frontend && $(MAKE) BUILD=$(BUILD) + +docker-build: + sudo docker build -t gvalkov/tailon . + +README.md: + ed $@ <<< $$'/BEGIN HELP/+2,/END HELP/-2d\n/BEGIN HELP/+1r !./tailon --help 2>&1\n,w' + sed -i 's/[ \t]*$$//' $@ + + +.PHONY: frontend frontend-watch docker-build README.md diff --git a/frontend/Makefile b/frontend/Makefile index 7250917..afdd852 100644 --- a/frontend/Makefile +++ b/frontend/Makefile @@ -1,6 +1,6 @@ CMD_CLEANCSS := node_modules/clean-css-cli/bin/cleancss CMD_NODESASS := node_modules/node-sass/bin/node-sass -CMD_UGLIFY := node_modules/uglify-js/bin/uglifyjs +CMD_UGLIFY := node_modules/uglify-js/bin/uglifyjs BUILD ?= prod DISTDIR ?= dist