Skip to content

Commit

Permalink
Add a top-level makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
gvalkov committed Jul 17, 2018
1 parent 4adf18d commit 7e75636
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion frontend/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 7e75636

Please sign in to comment.