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 | |
---|
15 | install_dir = ${CMTINSTALLAREA}/share/bin |
---|
16 | ${CONSTITUENT}installname = ${CONSTITUENT}.jar |
---|
17 | |
---|
18 | ${CONSTITUENT} :: ${CONSTITUENT}install |
---|
19 | |
---|
20 | install :: ${CONSTITUENT}install |
---|
21 | |
---|
22 | ${CONSTITUENT}install :: $(install_dir)/$(${CONSTITUENT}installname) |
---|
23 | ifdef CMTINSTALLAREA |
---|
24 | $(echo) "installation done" |
---|
25 | endif |
---|
26 | |
---|
27 | $(install_dir)/$(${CONSTITUENT}installname) :: $(javabin)$(${CONSTITUENT}installname) |
---|
28 | ifdef 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)" |
---|
35 | endif |
---|
36 | |
---|
37 | ##${CONSTITUENT}clean :: ${CONSTITUENT}uninstall |
---|
38 | |
---|
39 | uninstall :: ${CONSTITUENT}uninstall |
---|
40 | |
---|
41 | ${CONSTITUENT}uninstall :: |
---|
42 | ifdef CMTINSTALLAREA |
---|
43 | $(cleanup_silent) $(cmt_uninstall_action) \ |
---|
44 | -source "$(PACKAGE_ROOT)/classes" \ |
---|
45 | -name "$(${CONSTITUENT}installname)" \ |
---|
46 | -out "$(install_dir)" \ |
---|
47 | -cmtpath "$($(package)_cmtpath)" |
---|
48 | endif |
---|
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 ------ |
---|