[1] | 1 | #-- start of constituent ------ |
---|
| 2 | |
---|
| 3 | cmt_${CONSTITUENT}_${HASTARGETTAG} = 1 |
---|
| 4 | |
---|
| 5 | #-------------------------------------------------------- |
---|
| 6 | |
---|
| 7 | !if defined (cmt_${CONSTITUENT}_has_target_tag) |
---|
| 8 | |
---|
| 9 | cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag)_${CONSTITUENT}.nmake |
---|
| 10 | cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_${CONSTITUENT}_setup.nmake |
---|
| 11 | cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.nmake |
---|
| 12 | |
---|
| 13 | ${CONSTITUENT}_extratags = -tag_add=target_${CONSTITUENT} |
---|
| 14 | |
---|
| 15 | !if [if not exist $(bin) mkdir $(bin)] == 0 |
---|
| 16 | !endif |
---|
| 17 | |
---|
| 18 | !if [cmt -quiet -tag=$(tags) $(${CONSTITUENT}_extratags) build tag_makefile >$(cmt_local_tagfile_${CONSTITUENT})] == 0 |
---|
| 19 | !endif |
---|
| 20 | |
---|
| 21 | !if [$(cmtexe) -quiet -tag=$(tags) $(${CONSTITUENT}_extratags) show setup >$(cmt_final_setup_${CONSTITUENT})] == 0 |
---|
| 22 | !endif |
---|
| 23 | |
---|
| 24 | !else |
---|
| 25 | |
---|
| 26 | cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag).nmake |
---|
| 27 | cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_setup.nmake |
---|
| 28 | cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.nmake |
---|
| 29 | |
---|
| 30 | !endif |
---|
| 31 | |
---|
| 32 | $(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) $(cmt_local_tagfile_${CONSTITUENT}) dirs |
---|
| 33 | @echo (constituents.nmake) Building ${CONSTITUENT}.nmake |
---|
| 34 | @set include=$(include) |
---|
| 35 | @set lib=$(lib) |
---|
| 36 | @$(cmtexe) -quiet -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_makefile ${CONSTITUENT} |
---|
| 37 | @move ${CONSTITUENT}.nmake $(bin) |
---|
| 38 | @echo (constituents.nmake) ${CONSTITUENT}.nmake done |
---|
| 39 | |
---|
| 40 | ${CONSTITUENT} :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile) |
---|
| 41 | @echo (constituents.nmake) Starting ${CONSTITUENT} |
---|
| 42 | @set include=$(include) |
---|
| 43 | @set lib=$(lib) |
---|
| 44 | @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) $(MAKEFLAGS) build_strategy=keep_makefiles ${CONSTITUENT} tag=$(tag) |
---|
| 45 | @echo (constituents.nmake) ${CONSTITUENT} done |
---|
| 46 | |
---|
| 47 | clean :: ${CONSTITUENT}clean |
---|
| 48 | |
---|
| 49 | ${CONSTITUENT}clean :: $(${CONSTITUENT}clean_dependencies) ##$(cmt_local_${CONSTITUENT}_makefile) |
---|
| 50 | @echo (constituents.nmake) Starting ${CONSTITUENT}clean |
---|
| 51 | @set include=$(include) |
---|
| 52 | @set lib=$(lib) |
---|
| 53 | @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) $(MAKEFLAGS) build_strategy=keep_makefiles ${CONSTITUENT}clean tag=$(tag) |
---|
| 54 | @echo (constituents.nmake) ${CONSTITUENT}clean done |
---|
| 55 | |
---|
| 56 | install :: ${CONSTITUENT}install |
---|
| 57 | |
---|
| 58 | ${CONSTITUENT}install :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile) |
---|
| 59 | @echo (constituents.nmake) Starting install ${CONSTITUENT} |
---|
| 60 | @set include=$(include) |
---|
| 61 | @set lib=$(lib) |
---|
| 62 | @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) $(MAKEFLAGS) build_strategy=keep_makefiles install tag=$(tag) |
---|
| 63 | @echo (constituents.nmake) install ${CONSTITUENT} done |
---|
| 64 | |
---|
| 65 | uninstall :: ${CONSTITUENT}uninstall |
---|
| 66 | |
---|
| 67 | ${CONSTITUENT}uninstall :: $(cmt_local_${CONSTITUENT}_makefile) |
---|
| 68 | @echo (constituents.nmake) Starting uninstall ${CONSTITUENT}" |
---|
| 69 | @set include=$(include) |
---|
| 70 | @set lib=$(lib) |
---|
| 71 | @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) $(MAKEFLAGS) build_strategy=keep_makefiles uninstall tag=$(tag) |
---|
| 72 | @echo (constituents.nmake) uninstall ${CONSTITUENT} done |
---|
| 73 | |
---|
| 74 | #-- end of constituent ------ |
---|