1 | #-- start of constituent ------ |
---|
2 | |
---|
3 | cmt_${CONSTITUENT}_${HASTARGETTAG} = 1 |
---|
4 | cmt_${CONSTITUENT}_${HASDEPENDENCIES} = 1 |
---|
5 | |
---|
6 | #---------------------------------------- |
---|
7 | |
---|
8 | !if defined (cmt_${CONSTITUENT}_has_target_tag) |
---|
9 | |
---|
10 | cmt_local_tagfile_${CONSTITUENT} = $(bin)$(${PACKAGE}_tag)_${CONSTITUENT}.nmake |
---|
11 | cmt_final_setup_${CONSTITUENT} = $(bin)setup_${CONSTITUENT}.nmake |
---|
12 | cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.nmake |
---|
13 | |
---|
14 | ${CONSTITUENT}_extratags = -tag_add=target_${CONSTITUENT} |
---|
15 | |
---|
16 | !else |
---|
17 | |
---|
18 | cmt_local_tagfile_${CONSTITUENT} = $(bin)$(${PACKAGE}_tag).nmake |
---|
19 | cmt_final_setup_${CONSTITUENT} = $(bin)setup.nmake |
---|
20 | cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.nmake |
---|
21 | |
---|
22 | !endif |
---|
23 | |
---|
24 | !if defined (cmt_${CONSTITUENT}_has_target_tag) |
---|
25 | |
---|
26 | !if "$(QUICK)" == "" || !exist ($(cmt_local_${CONSTITUENT}_makefile)) || !exist ($(cmt_local_tagfile_${CONSTITUENT})) || !exist ($(cmt_final_setup_${CONSTITUENT})) |
---|
27 | $(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) dirs |
---|
28 | $(echo) (constituents.nmake) Building ${CONSTITUENT}.nmake |
---|
29 | @set include=$(include) |
---|
30 | @set lib=$(lib) |
---|
31 | @$(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_config -out=$@ ${CONSTITUENT} |
---|
32 | !else |
---|
33 | $(cmt_local_${CONSTITUENT}_makefile) : $(${CONSTITUENT}_dependencies) $(use_requirements) |
---|
34 | @set include=$(include) |
---|
35 | @set lib=$(lib) |
---|
36 | @if not "$?"=="$(${CONSTITUENT}_dependencies)" ((if not "$(cmtmsg)"=="" @echo "$(CMTMSGPREFIX)" "(constituents.nmake) Rebuilding ${CONSTITUENT}.nmake") & $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_config -out=$@ ${CONSTITUENT}) else (if not "$(cmtmsg)"=="" @echo "$(CMTMSGPREFIX)" "(constituents.nmake) ${CONSTITUENT}.nmake up-to-date") |
---|
37 | !endif |
---|
38 | |
---|
39 | !else |
---|
40 | |
---|
41 | !if "$(QUICK)" == "" || !exist ($(cmt_local_${CONSTITUENT}_makefile)) || !exist ($(cmt_local_tagfile_${CONSTITUENT})) || !exist ($(cmt_final_setup_${CONSTITUENT})) |
---|
42 | $(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) dirs |
---|
43 | $(echo) (constituents.nmake) Building ${CONSTITUENT}.nmake |
---|
44 | @set include=$(include) |
---|
45 | @set lib=$(lib) |
---|
46 | @$(cmtexe) -f=$(bin)${CONSTITUENT}.in -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_makefile -without_cmt -out=$@ ${CONSTITUENT} |
---|
47 | !else |
---|
48 | $(cmt_local_${CONSTITUENT}_makefile) : $(${CONSTITUENT}_dependencies) $(use_requirements) $(bin)${CONSTITUENT}.in |
---|
49 | @set include=$(include) |
---|
50 | @set lib=$(lib) |
---|
51 | @if not "$?"=="$(${CONSTITUENT}_dependencies)" ((if not "$(cmtmsg)"=="" @echo "$(CMTMSGPREFIX)" "(constituents.nmake) Rebuilding ${CONSTITUENT}.nmake") & $(cmtexe) -f=$(bin)${CONSTITUENT}.in -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_makefile -without_cmt -out=$@ ${CONSTITUENT}) else (if not "$(cmtmsg)"=="" @echo "$(CMTMSGPREFIX)" "(constituents.nmake) ${CONSTITUENT}.nmake up-to-date") |
---|
52 | !endif |
---|
53 | |
---|
54 | !endif |
---|
55 | |
---|
56 | |
---|
57 | !if defined (cmt_${CONSTITUENT}_has_dependencies) |
---|
58 | |
---|
59 | ${CONSTITUENT}dependencies : $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile) dirs |
---|
60 | @set include=$(include) |
---|
61 | @set lib=$(lib) |
---|
62 | @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles dependencies tag=$(tag) |
---|
63 | |
---|
64 | ${CONSTITUENT} :: ${CONSTITUENT}dependencies |
---|
65 | !else |
---|
66 | ${CONSTITUENT} :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile) dirs |
---|
67 | !endif |
---|
68 | $(echo) (constituents.nmake) Starting ${CONSTITUENT} |
---|
69 | @set include=$(include) |
---|
70 | @set lib=$(lib) |
---|
71 | @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles ${CONSTITUENT} tag=$(tag) |
---|
72 | $(echo) (constituents.nmake) ${CONSTITUENT} done |
---|
73 | |
---|
74 | clean :: ${CONSTITUENT}clean ; |
---|
75 | |
---|
76 | ${CONSTITUENT}clean :: $(${CONSTITUENT}clean_dependencies) ##$(cmt_local_${CONSTITUENT}_makefile) |
---|
77 | $(echo) (constituents.nmake) Starting $@ |
---|
78 | @set include=$(include) |
---|
79 | @set lib=$(lib) |
---|
80 | @-if exist $(cmt_local_${CONSTITUENT}_makefile) $(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles $@ tag=$(tag) |
---|
81 | $(echo) (constituents.nmake) $@ done |
---|
82 | # @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles ${CONSTITUENT}clean tag=$(tag) |
---|
83 | |
---|
84 | install :: ${CONSTITUENT}install ; |
---|
85 | |
---|
86 | ${CONSTITUENT}install :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile) |
---|
87 | $(echo) (constituents.nmake) Starting $@ |
---|
88 | @set include=$(include) |
---|
89 | @set lib=$(lib) |
---|
90 | @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles install tag=$(tag) |
---|
91 | $(echo) (constituents.nmake) $@ done |
---|
92 | |
---|
93 | uninstall :: ${CONSTITUENT}uninstall ; |
---|
94 | |
---|
95 | ${CONSTITUENT}uninstall :: $(${CONSTITUENT}uninstall_dependencies) |
---|
96 | $(echo) (constituents.nmake) Starting $@ |
---|
97 | @set include=$(include) |
---|
98 | @set lib=$(lib) |
---|
99 | @-if exist $(cmt_local_${CONSTITUENT}_makefile) $(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles uninstall tag=$(tag) |
---|
100 | # @if not exist $(cmt_local_${CONSTITUENT}_makefile) $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_config -out=$(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT} |
---|
101 | # @if not exist $(cmt_local_${CONSTITUENT}_makefile) $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_makefile -out=$(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT} |
---|
102 | # @-$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles uninstall tag=$(tag) |
---|
103 | $(echo) (constituents.nmake) $@ done |
---|
104 | |
---|
105 | #-- end of constituent ------ |
---|