# Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved. 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.P #javadepend: # echo -n fsmgr.jar: > Makedepend # $(JARLINKS) -m -e EXCLUDE.fs -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 = \ @dir=$(basename $@); \ lang=$(shell echo $@ | sed -e 's/.*P\(_.*\)\.jar/\1/'); \ test $$lang = $@ && 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