######################################################################## # WARNING! WARNING! DANGER, WILL ROBINSON! ######################################################################## # If you are a press release author, you do NOT need to do anything in # this directory and you MUST NOT edit this "Makefile". You will void # the warranty ;-) ######################################################################## # NOTES TO DOCUMENT AUTHORS AND TRANSLATORS # ----------------------------------------- # # To create a new press release, type the following command in THIS # directory: # # $ make DOC_BASE=foo PRI_LANG=en_US OTHERS= new # # Where 'foo' is the name for your new document. Replace 'en_US' by # your locale. If you already have translators signed up, then you # can list them in the 'OTHERS=' value; if not, you can always edit # your document's "Makefile" setting. ######################################################################## SUBDIRS :=$(foreach doc,$(shell ls releases | fgrep -v CVS),releases/${doc}) TARGETS =all clean distclean clobber pot help po pot pdf showvars mrproper TARGET =all .PHONY: ${RELEASES} ${TARGETS} ${SUBDIRS} ${TARGETS}:: ${MAKE} TARGET=$@ ${SUBDIRS} ${SUBDIRS}:: ${MAKE} -C $@ ${TARGET} showvars:: @echo "SUBDIRS=${SUBDIRS}" @echo "TARGETS=${TARGETS}" @echo "TARGET=${TARGET}" ######################################################################## # To generate a skeleton for a new document, do this: # $ make DOC_BASE=NewDoc PRI_LANG=my_LA OTHERS= new # DOC_BASE=RTFM PRI_LANG=RTFM OTHERS = new:: mkdir releases/${DOC_BASE} sed -e 's/THEXML/${DOC_BASE}/g' -e 's/THELANG/${PRI_LANG}/g' \ -e 's/THEOTHERS/${OTHERS}/g' \ tools/skel/Makefile >releases/${DOC_BASE}/Makefile sed -e 's/EXAMPLE/${DOC_BASE}/g' -e 's/THELANG/${PRI_LANG}/g' \ -e 's/THEOTHERS/${OTHERS}/g' \ tools/skel/EXAMPLE-en_US.xml \ >releases/${DOC_BASE}/${DOC_BASE}-${PRI_LANG}.xml ######################################################################## # END OF MAKEFILE ########################################################################