source: CMT/HEAD/mgr/fragments/nmake/java_header @ 631

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

See C.L. 502

  • 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 not exist $(javabin)${CONSTITUENT} mkdir $(javabin)${CONSTITUENT}
5
6${CONSTITUENT} :: ${CONSTITUENT}javadirs $(javabin)${CONSTITUENT}.jar
7        $(echo) "${CONSTITUENT} ok"
8
9cmt_${CONSTITUENT}_${HASPROTOTYPES} = 1
10
11#--------------------------------------
12
13!if defined (cmt_${CONSTITUENT}_has_prototypes)
14
15${CONSTITUENT}prototype : ${PROTOTARGET} ;
16
17!endif
18
19${CONSTITUENT}compile : ${OBJS} ;
20
21$(javabin)${CONSTITUENT}.jar :: ${OBJS}
22        $(java_echo) $@
23        $(java_silent)cd $(javabin)${CONSTITUENT}
24        $(java_silent)echo Main-Class: ${CONSTITUENT} > ${CONSTITUENT}.jmf
25        $(java_silent)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)
35!if "$(CMTINSTALLAREA)" != ""
36        $(echo) "installation done"
37!endif
38
39$(install_dir)\$(${CONSTITUENT}installname) :: $(javabin)$(${CONSTITUENT}installname)
40!if "$(CMTINSTALLAREA)" != ""
41        $(install_echo) $(@F) into $(@D)
42        $(install_silent) $(cmt_install_action) "$(PACKAGE_ROOT)\classes" "$(${CONSTITUENT}installname)" "$(install_dir)"
43!endif
44
45##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall
46
47uninstall :: ${CONSTITUENT}uninstall ;
48
49${CONSTITUENT}uninstall ::
50!if "$(CMTINSTALLAREA)" != ""
51        $(cleanup_echo) "$(${CONSTITUENT}installlibname)" from "$(install_dir)"
52        $(cleanup_silent) $(cmt_uninstall_action) "$(PACKAGE_ROOT)\classes" "$(${CONSTITUENT}installname)" "$(install_dir)"
53!endif
54
55
56${CONSTITUENT}clean ::
57        $(cleanup_silent) if exist $(javabin)\${CONSTITUENT} rmdir /Q /S $(javabin)\${CONSTITUENT}
58        $(cleanup_silent) if exist $(javabin)\${CONSTITUENT}.jar del $(javabin)\${CONSTITUENT}.jar
59
60#-- end of java_header ------
Note: See TracBrowser for help on using the repository browser.