Commit 9644218d authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Rework Makefile

Change the target directory to ~/www
parent a229adef
DIST := dist
DEST := $(HOME)/www
NM := node_modules
NG := $(NM)/.bin/ng
.PHONY: clean, dev, prod
NG_BUILD := $(NG) build --aot --output-path $(DEST)
.PHONY: all, clean, cleaner, dev, watch, prod, watch-prod
all: prod
......@@ -19,15 +21,15 @@ $(NM):
$(NG): $(NM)
dev: $(NG)
@$(NG) build --aot
@$(NG_BUILD)
watch: $(NG)
@$(NG) build --aot --watch
@$(NG_BUILD) --watch
prod: $(NG)
@$(NG) build --aot --prod
@$(NG_BUILD) --prod
watch-prod: $(NG)
@$(NG) build --aot --prod --watch
@$(NG_BUILD) --prod --watch
$(DIST): prod
$(DEST): prod
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment