File: [Development] / failsafe / FailSafe-mgr / packages / Makefile.am (download)
Revision 1.3, Thu Jun 29 23:37:13 2000 UTC (17 years, 3 months ago) by rusty
Branch: MAIN
Changes since 1.2: +38 -7
lines
GNU gettext changes: added gnarly PROPFILE_MAKERULE for
generating the correct language-specific jar files, added
language-specific jar files to rhjar_DATA, added
fsmgrP_en_US.dude.jar target.
|
SUBDIRS = com
rhjardir = @RHJARDIR@
rhjar_DATA = fsmgr.jar fsmgrP.jar \
$(foreach lang,$(basename $(POFILES)),fsmgrP_$(lang).jar)
CLEANFILES = $(rhjar_DATA) Makedepend
EXTRA_DIST = EXCLUDE.fs EXCLUDE.cx EXCLUDE.P
#javadepend:
# echo -n fsmgr.jar: > Makedepend
# $(JARLINKS) -m -e EXCLUDE.fs -s com \*.class >> Makedepend
# echo -n cxmgr.jar: >> Makedepend
# $(JARLINKS) -m -e EXCLUDE.cx -s com \*.class >> Makedepend
# echo -n fsmgrP.jar: >> Makedepend
# $(JARLINKS) -m -e EXCLUDE.P -s com \*.properties \*.gif >> Makedepend
fsmgr.jar:
rm -rf fsmgr
$(JARLINKS) -s com -e EXCLUDE.fs -d fsmgr \*.class
cd fsmgr; $(CLASSPATH_ENV) $(JAR) cf ../$@ .
rm -rf fsmgr
fsmgrP.jar:
$(PROPFILE_MAKERULE)
fsmgrP_en_US.dude.jar:
$(PROPFILE_MAKERULE)
# The reason this is "echo $foo; $foo instead of just not preceding the
# whole thing with a @ is that you got the whole icky shell script on one
# line with all these variables, and at build time it was hard to tell
# what was going on.
#
# Note that everywhere we deal with variables called $...lang... below,
# the contents are the actual $LANG preceded by an underbar. It aaall
# makes sense, really it does. (As long as you name your localized
# properties file FooP_ll_CC.properties, not FooP.ll_CC.properties; if
# you do that, the below will need some fiddling.)
PROPFILE_MAKERULE = \
@jarname=$(shell echo $@ | sed -e 's/\(.\+P\)\(_.\+\)\?\.jar/\1/'); \
lang=$(shell echo $@ | sed -e 's/.\+P\(_.\+\)\.jar/\1/'); \
test $$lang = $@ && lang= ; \
dir=$$jarname$$lang ; \
files="\*$$lang.properties \*$$lang.gif \*$$lang.jpg \*$$lang.hs \*$$lang.xml \*$$lang.jhm \*$$lang.html" ; \
test "$$lang" = "" && files="$$files JavaHelpSearch"; \
excludelangs="$(foreach lang,$(basename $(POFILES)),_$(lang))" ; \
test "$$lang" != "" && excludelangs=`echo $$excludelangs | sed -e s/$$lang//` ; \
exargs= ; \
for exlang in $$excludelangs; do \
exargs="$$exargs -x $$exlang" ; \
done; \
echo rm -rf $$dir; \
rm -rf $$dir; \
echo $(JARLINKS) -v -l \"$$lang\" $$exargs -s com -d $$dir $$files; \
$(JARLINKS) -v -l "$$lang" $$exargs -s com -d $$dir $$files; \
echo "cd $$dir && $(CLASSPATH_ENV) $(JAR) cf ../$@ . && cd .. || exit 1" ; \
cd $$dir && $(CLASSPATH_ENV) $(JAR) cf ../$@ . && cd .. || exit 1 ; \
echo rm -rf $$dir ; \
rm -rf $$dir
##cxmgr.jar:
## rm -rf cxmgr
## $(JARLINKS) -s com -e EXCLUDE.cx -d fsmgr \*.class
## cd fsmgr; $(CLASSPATH_ENV) $(JAR) cf ../$@ .
## rm -rf fsmgr
##
### In the original Makefile, this was handled by an install line which
### installed fsmgrP.jar as cxmgrP.jar.
##cxmgrP.jar: fsmgrP.jar
## cp fsmgrP.jar cxmgrP.jar
###!smake
##
##RHDEPTH = ..
##include $(RHDEPTH)/rhdefs
##
##COMMONPREF = packages
##SUBDIR_MAKEPREF = "===="
##SUBDIRS = com
##LDIRT = Makedepend jarlinks fsmgr fsmgrP cxmgr $(JAVAC_LIST)
##
##JARFILES = fsmgr.jar fsmgrP.jar cxmgr.jar
##TARGETS = $(JARFILES)
##
###
### The dependencies for fsmgr.jar live in Makedepend and are generated
### by the first three commands in this rule.
###
##default: $(_FORCE)
## cd com; $(MAKE) default
## $(MAKE) javadepend
## $(MAKE) fsmgr.jar
## $(MAKE) cxmgr.jar
## $(MAKE) fsmgrP.jar
##
##include $(RHRULES)
##
##javadepend:
## echo -n fsmgr.jar: > Makedepend
## $(JARLINKS) -m -e EXCLUDE.fs -s com \*.class >> Makedepend
## echo -n cxmgr.jar: >> Makedepend
## $(JARLINKS) -m -e EXCLUDE.cx -s com \*.class >> Makedepend
## echo -n fsmgrP.jar: >> Makedepend
## $(JARLINKS) -m -e EXCLUDE.P -s com \*.properties \*.gif >> Makedepend
##
##fsmgr.jar:
## rm -rf fsmgr
## $(JARLINKS) -s com -e EXCLUDE.fs -d fsmgr \*.class
## cd fsmgr; CLASSPATH=$(RHCLASSPATH) $(JAR) cf ../$@ .
##
##fsmgrP.jar:
## rm -rf fsmgrP
## $(JARLINKS) -s com -e EXCLUDE.P -d fsmgrP \*.properties \*.gif
## cd fsmgrP; CLASSPATH=$(RHCLASSPATH) $(JAR) cf ../$@ .
##
##cxmgr.jar:
## rm -rf cxmgr
## $(JARLINKS) -s com -e EXCLUDE.cx -d cxmgr \*.class
## cd cxmgr; CLASSPATH=$(RHCLASSPATH) $(JAR) cf ../$@ .
##
##$(COMMONPREF)install: default
## $(INSTALL) -F $(RHJARDIR) -idb CLIENT -idb JAVA cxmgr.jar
## $(INSTALL) -F $(RHJARDIR) -idb CLIENT -idb JAVA -src fsmgrP.jar cxmgrP.jar
## $(INSTALL) -F $(RHJARDIR) -idb FSCLIENT -idb JAVA fsmgr.jar
## $(INSTALL) -F $(RHJARDIR) -idb FSCLIENT -idb JAVA fsmgrP.jar
##
##$(COMMONPREF)depend:
##
##install $(COMMONTARGS): $(COMMONPREF)$$@ $(_FORCE)
## $(SUBDIRS_MAKERULE)
##
##.ORDER: default $(TARGETS)