-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (34 loc) · 1.09 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
include Makefile.inc
DST_DIR := src
SRC_DIR := host
PACKAGE_SOURCES := $(SRC_DIR)/mediators/interfaces.ts \
$(SRC_DIR)/mediators/noop-view-instance.ts \
$(SRC_DIR)/mediators/abstract-list.ts \
$(SRC_DIR)/mediators/writable-abstract-list.ts \
$(SRC_DIR)/mediators/ngstore-abstract-list.ts \
$(SRC_DIR)/mediators/rxjs-powered-writable-abstract-list.ts \
$(SRC_DIR)/controllers/list-controller.ts
PACKAGE_TARGETS := $(subst $(SRC_DIR),$(DST_DIR),$(PACKAGE_SOURCES))
# rules
$(DST_DIR)/mediators/%.ts: $(SRC_DIR)/mediators/%.ts
$(ECHO) Making a file $@ from $<
$(MKDIR) -p $(dir $@)
$(CP) $(CPFlALGS) $< $@
$(DST_DIR)/controllers/%.ts: $(SRC_DIR)/controllers/%.ts
$(ECHO) Making a file $@ from $<
$(MKDIR) -p $(dir $@)
$(CP) $(CPFlALGS) $< $@
prepare_dir:
echo "Preparing directory ..."
# rm -rf $(DST_DIR)
echo "Generating src ..."
$(PACKAGE_TARGETS): | prepare_dir
publish: $(PACKAGE_TARGETS)
test:
echo $(PACKAGE_SOURCES)
echo $(PACKAGE_TARGETS)
# deployment
BuildDist := ./dist/polpware/fe-mvc
BuildDoc := ./docs
DeployTarget := ./deployment/polpware-fe-mvc
include Makefile.deployment