Makefile 374 Bytes
Newer Older
Lukas Burgey's avatar
Lukas Burgey committed
1
2
3
4
5

DIST := dist
NM := node_modules
NG := $(NM)/.bin/ng

6
.PHONY: clean, dev, prod, $(NM)
Lukas Burgey's avatar
Lukas Burgey committed
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

all: prod

clean:
	@rm -rf $(DIST)

cleaner:
	@rm -rf $(NM) $(DIST)

$(NM):
	@npm install

$(NG): $(NM)

dev: $(NG)
	@$(NG) build --aot

Lukas Burgey's avatar
Lukas Burgey committed
24
25
26
watch: $(NG)
	@$(NG) build --aot --watch

Lukas Burgey's avatar
Lukas Burgey committed
27
28
29
prod: $(NG)
	@$(NG) build --aot --prod

Lukas Burgey's avatar
Lukas Burgey committed
30
31
32
watch-prod: $(NG)
	@$(NG) build --aot --prod --watch

Lukas Burgey's avatar
Lukas Burgey committed
33
$(DIST): prod