| [2] | 1 | #-- start of constituent ------
|
|---|
| 2 |
|
|---|
| 3 | cmt_${CONSTITUENT}_${HASTARGETTAG} = 1
|
|---|
| 4 |
|
|---|
| 5 | #--------------------------------------------------------
|
|---|
| 6 |
|
|---|
| 7 | ifdef cmt_${CONSTITUENT}_has_target_tag
|
|---|
| 8 |
|
|---|
| 9 | ifdef READONLY
|
|---|
| [183] | 10 | cmt_local_tagfile_${CONSTITUENT} = /tmp/CMT_$(${PACKAGE}_tag)_${CONSTITUENT}.make$(cmt_lock_pid)
|
|---|
| [198] | 11 | cmt_final_setup_${CONSTITUENT} = /tmp/CMT_${PACKAGE}_${CONSTITUENT}setup.make
|
|---|
| [2] | 12 | cmt_local_${CONSTITUENT}_makefile = /tmp/CMT_${CONSTITUENT}$(cmt_lock_pid).make
|
|---|
| 13 | else
|
|---|
| [434] | 14 | #cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag)_${CONSTITUENT}.make
|
|---|
| 15 | cmt_local_tagfile_${CONSTITUENT} = $(bin)$(${PACKAGE}_tag)_${CONSTITUENT}.make
|
|---|
| [198] | 16 | cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_${CONSTITUENT}setup.make
|
|---|
| [2] | 17 | cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.make
|
|---|
| 18 | endif
|
|---|
| 19 |
|
|---|
| 20 | ${CONSTITUENT}_extratags = -tag_add=target_${CONSTITUENT}
|
|---|
| 21 |
|
|---|
| [434] | 22 | #$(cmt_local_tagfile_${CONSTITUENT}) : $(cmt_lock_setup)
|
|---|
| 23 | ifndef QUICK
|
|---|
| 24 | $(cmt_local_tagfile_${CONSTITUENT}) ::
|
|---|
| 25 | else
|
|---|
| 26 | $(cmt_local_tagfile_${CONSTITUENT}) :
|
|---|
| 27 | endif
|
|---|
| [441] | 28 | $(echo) "(constituents.make) Rebuilding setup.make $(cmt_local_tagfile_${CONSTITUENT})"
|
|---|
| [2] | 29 | @if test -f $(cmt_local_tagfile_${CONSTITUENT}); then /bin/rm -f $(cmt_local_tagfile_${CONSTITUENT}); fi ; \
|
|---|
| [459] | 30 | $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build tag_makefile >>$(cmt_local_tagfile_${CONSTITUENT}); \
|
|---|
| [2] | 31 | if test -f $(cmt_final_setup_${CONSTITUENT}); then /bin/rm -f $(cmt_final_setup_${CONSTITUENT}); fi; \
|
|---|
| [459] | 32 | $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) show setup >>$(cmt_final_setup_${CONSTITUENT})
|
|---|
| [441] | 33 | $(echo) setup.make ok
|
|---|
| [2] | 34 |
|
|---|
| 35 | else
|
|---|
| 36 |
|
|---|
| 37 | ifdef READONLY
|
|---|
| 38 | cmt_local_tagfile_${CONSTITUENT} = /tmp/CMT_$(${PACKAGE}_tag).make$(cmt_lock_pid)
|
|---|
| [198] | 39 | cmt_final_setup_${CONSTITUENT} = /tmp/CMT_${PACKAGE}setup.make
|
|---|
| [2] | 40 | cmt_local_${CONSTITUENT}_makefile = /tmp/CMT_${CONSTITUENT}$(cmt_lock_pid).make
|
|---|
| 41 | else
|
|---|
| [434] | 42 | #cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag).make
|
|---|
| 43 | cmt_local_tagfile_${CONSTITUENT} = $(bin)$(${PACKAGE}_tag).make
|
|---|
| [198] | 44 | cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}setup.make
|
|---|
| [2] | 45 | cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.make
|
|---|
| 46 | endif
|
|---|
| 47 |
|
|---|
| 48 | endif
|
|---|
| 49 |
|
|---|
| [434] | 50 | ifndef QUICK
|
|---|
| [483] | 51 | ifdef STRUCTURED_OUTPUT
|
|---|
| 52 | ${CONSTITUENT}dirs ::
|
|---|
| 53 | @if test ! -d $(bin)${CONSTITUENT}; then $(mkdir) -p $(bin)${CONSTITUENT}; fi
|
|---|
| 54 | $(echo) "STRUCTURED_OUTPUT="$(bin)${CONSTITUENT}
|
|---|
| 55 |
|
|---|
| 56 | $(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) $(cmt_local_tagfile_${CONSTITUENT}) build_library_links dirs ${CONSTITUENT}dirs
|
|---|
| 57 | else
|
|---|
| [2] | 58 | $(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) $(cmt_local_tagfile_${CONSTITUENT}) build_library_links dirs
|
|---|
| [483] | 59 | endif
|
|---|
| [434] | 60 | else
|
|---|
| 61 | $(cmt_local_${CONSTITUENT}_makefile) :: $(cmt_local_tagfile_${CONSTITUENT})
|
|---|
| 62 | endif
|
|---|
| [441] | 63 | $(echo) "(constituents.make) Building ${CONSTITUENT}.make"; \
|
|---|
| [459] | 64 | $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build constituent_makefile -out=$(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT}
|
|---|
| [2] | 65 |
|
|---|
| 66 | ${CONSTITUENT} :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile)
|
|---|
| [441] | 67 | $(echo) "(constituents.make) Starting ${CONSTITUENT}"
|
|---|
| [434] | 68 | @$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) cmt_lock_pid=$${cmt_lock_pid} ${CONSTITUENT}
|
|---|
| [441] | 69 | $(echo) "(constituents.make) ${CONSTITUENT} done"
|
|---|
| [2] | 70 |
|
|---|
| 71 | clean :: ${CONSTITUENT}clean
|
|---|
| 72 |
|
|---|
| 73 | ${CONSTITUENT}clean :: $(${CONSTITUENT}clean_dependencies) ##$(cmt_local_${CONSTITUENT}_makefile)
|
|---|
| [441] | 74 | $(echo) "(constituents.make) Starting ${CONSTITUENT}clean"
|
|---|
| [79] | 75 | @-if test -f $(cmt_local_${CONSTITUENT}_makefile); then \
|
|---|
| [434] | 76 | $(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) cmt_lock_pid=$${cmt_lock_pid} ${CONSTITUENT}clean; \
|
|---|
| [2] | 77 | fi
|
|---|
| 78 |
|
|---|
| 79 | ## /bin/rm -f $(cmt_local_${CONSTITUENT}_makefile) $(bin)${CONSTITUENT}_dependencies.make
|
|---|
| 80 |
|
|---|
| 81 | install :: ${CONSTITUENT}install
|
|---|
| 82 |
|
|---|
| 83 | ${CONSTITUENT}install :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile)
|
|---|
| [441] | 84 | $(echo) "(constituents.make) Starting install ${CONSTITUENT}"
|
|---|
| [434] | 85 | @-$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) cmt_lock_pid=$${cmt_lock_pid} install
|
|---|
| [441] | 86 | $(echo) "(constituents.make) install ${CONSTITUENT} done"
|
|---|
| [2] | 87 |
|
|---|
| 88 | uninstall :: ${CONSTITUENT}uninstall
|
|---|
| 89 |
|
|---|
| 90 | ${CONSTITUENT}uninstall :: $(cmt_local_${CONSTITUENT}_makefile)
|
|---|
| [441] | 91 | $(echo) "(constituents.make) Starting uninstall ${CONSTITUENT}"
|
|---|
| [434] | 92 | @-$(MAKE) -f $(cmt_local_${CONSTITUENT}_makefile) cmt_lock_pid=$${cmt_lock_pid} uninstall
|
|---|
| [441] | 93 | $(echo) "(constituents.make) uninstall ${CONSTITUENT} done"
|
|---|
| [2] | 94 |
|
|---|
| [183] | 95 | ifndef PEDANTIC
|
|---|
| [2] | 96 | .DEFAULT::
|
|---|
| [441] | 97 | $(echo) "(constituents.make) Starting $@ ${CONSTITUENT}"
|
|---|
| 98 | $(echo) Using default action for $@
|
|---|
| 99 | $(echo) "(constituents.make) $@ ${CONSTITUENT} done"
|
|---|
| [183] | 100 | endif
|
|---|
| [2] | 101 |
|
|---|
| 102 |
|
|---|
| 103 | #-- end of constituent ------
|
|---|