source: CMT/v1r18p20041201/mgr/fragments/java_header@ 1

Last change on this file since 1 was 1, checked in by arnault, 21 years ago

Import all tags

File size: 1.7 KB
Line 
1#-- start of java_header ------
2
3${CONSTITUENT}javadirs ::
4 @if test ! -d $(javabin)/${CONSTITUENT} ; then $(mkdir) -p $(javabin)${CONSTITUENT} ; fi
5
6${CONSTITUENT} :: ${CONSTITUENT}javadirs $(javabin)${CONSTITUENT}.jar
7 @/bin/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)
23 @if test ! "${CMTINSTALLAREA}" = ""; then\
24 echo "installation done"; \
25 fi
26
27$(install_dir)/$(${CONSTITUENT}installname) :: $(javabin)$(${CONSTITUENT}installname)
28 @if test ! "${CMTINSTALLAREA}" = ""; then \
29 $(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)" ; \
35 fi
36
37##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
38
39uninstall :: ${CONSTITUENT}uninstall
40
41${CONSTITUENT}uninstall ::
42 @if test ! "${CMTINSTALLAREA}" = ""; then \
43 $(cmt_uninstall_action) \
44 -source "$(PACKAGE_ROOT)/classes" \
45 -name "$(${CONSTITUENT}installname)" \
46 -out "$(install_dir)" \
47 -cmtpath "$($(package)_cmtpath)" ; \
48 fi
49
50${CONSTITUENT}clean ::
51 /bin/rm -rf $(javabin)/${CONSTITUENT}
52 /bin/rm -f $(javabin)/${CONSTITUENT}.jar
53
54#-- end of java_header ------
Note: See TracBrowser for help on using the repository browser.