source: CMT/HEAD/mgr/fragments/java_header

Last change on this file was 628, checked in by rybkin, 11 years ago

See C.L. 499

  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
1#-- start of java_header ------
2
3${CONSTITUENT}javadirs ::
4        $(silent) if test ! -d $(javabin)${CONSTITUENT} ; then $(mkdir) -p $(javabin)${CONSTITUENT} ; fi
5
6${CONSTITUENT} :: ${CONSTITUENT}javadirs $(javabin)${CONSTITUENT}.jar
7        $(echo) "${CONSTITUENT} ok"
8
9cmt_${CONSTITUENT}_${HASPROTOTYPES} = 1
10
11#--------------------------------------
12
13ifdef cmt_${CONSTITUENT}_has_prototypes
14
15${CONSTITUENT}prototype : ${PROTOTARGET} ;
16
17endif
18
19${CONSTITUENT}compile : ${OBJS} ;
20
21$(javabin)${CONSTITUENT}.jar :: ${OBJS}
22        $(java_echo) $@
23        $(java_silent)cd $(javabin)${CONSTITUENT}; \
24          echo "Main-Class: ${CONSTITUENT}" >| ${CONSTITUENT}.jmf; \
25          $(jar) -cmvf ${CONSTITUENT}.jmf ../${CONSTITUENT}.jar *
26
27install_dir = ${CMTINSTALLAREA}/share/bin
28${CONSTITUENT}installname = ${CONSTITUENT}.jar
29
30${CONSTITUENT} :: ${CONSTITUENT}install ;
31
32install :: ${CONSTITUENT}install ;
33
34${CONSTITUENT}install :: $(install_dir)/$(${CONSTITUENT}installname)
35ifdef CMTINSTALLAREA
36        $(echo) "installation done"
37endif
38
39$(install_dir)/$(${CONSTITUENT}installname) :: $(javabin)$(${CONSTITUENT}installname)
40ifdef CMTINSTALLAREA
41        $(install_silent) $(cmt_install_action) \
42            -source "$(PACKAGE_ROOT)/classes" \
43            -name "$(${CONSTITUENT}installname)" \
44            -out "$(install_dir)" \
45            -cmd "$(cmt_installarea_command)" \
46            -cmtpath "$($(package)_cmtpath)"
47endif
48
49##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
50
51uninstall :: ${CONSTITUENT}uninstall ;
52
53${CONSTITUENT}uninstall ::
54ifdef CMTINSTALLAREA
55        $(cleanup_silent) $(cmt_uninstall_action) \
56            -source "$(PACKAGE_ROOT)/classes" \
57            -name "$(${CONSTITUENT}installname)" \
58            -out "$(install_dir)" \
59            -cmtpath "$($(package)_cmtpath)"
60endif
61
62${CONSTITUENT}clean ::
63        $(cleanup_silent) /bin/rm -rf $(javabin)/${CONSTITUENT}
64        $(cleanup_silent) /bin/rm -f $(javabin)/${CONSTITUENT}.jar
65
66#-- end of java_header ------
Note: See TracBrowser for help on using the repository browser.