source: CMT/HEAD/mgr/fragments/java_header @ 441

Last change on this file since 441 was 441, checked in by rybkin, 16 years ago

See C.L. 345

  • Property svn:eol-style set to native
File size: 1.6 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
9$(javabin)${CONSTITUENT}.jar :: ${OBJS}
10        $(java_echo) $@
11        $(java_silent)cd $(javabin)${CONSTITUENT}; \
12          echo "Main-Class: ${CONSTITUENT}" >| ${CONSTITUENT}.jmf; \
13          $(jar) -cmvf ${CONSTITUENT}.jmf ../${CONSTITUENT}.jar *
14
15install_dir = ${CMTINSTALLAREA}/share/bin
16${CONSTITUENT}installname = ${CONSTITUENT}.jar
17
18${CONSTITUENT} :: ${CONSTITUENT}install
19
20install :: ${CONSTITUENT}install
21
22${CONSTITUENT}install :: $(install_dir)/$(${CONSTITUENT}installname)
23ifdef CMTINSTALLAREA
24        $(echo) "installation done"
25endif
26
27$(install_dir)/$(${CONSTITUENT}installname) :: $(javabin)$(${CONSTITUENT}installname)
28ifdef CMTINSTALLAREA
29        $(install_silent) $(cmt_install_action) \
30            -source "$(PACKAGE_ROOT)/classes" \
31            -name "$(${CONSTITUENT}installname)" \
32            -out "$(install_dir)" \
33            -cmd "$(cmt_installarea_command)" \
34            -cmtpath "$($(package)_cmtpath)"
35endif
36
37##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
38
39uninstall :: ${CONSTITUENT}uninstall
40
41${CONSTITUENT}uninstall ::
42ifdef CMTINSTALLAREA
43        $(cleanup_silent) $(cmt_uninstall_action) \
44            -source "$(PACKAGE_ROOT)/classes" \
45            -name "$(${CONSTITUENT}installname)" \
46            -out "$(install_dir)" \
47            -cmtpath "$($(package)_cmtpath)"
48endif
49
50${CONSTITUENT}clean ::
51        $(cleanup_silent) /bin/rm -rf $(javabin)/${CONSTITUENT}
52        $(cleanup_silent) /bin/rm -f $(javabin)/${CONSTITUENT}.jar
53
54#-- end of java_header ------
Note: See TracBrowser for help on using the repository browser.