# BIM's BSD Leaflet Makefile. # First by Oliver Fromme # Replaced by Julian Stacey adding dual language & HTML # & pdf & bjc & auto tool. build & wysiwyg editing via berklix.mk macros. # E: Creates a 3 x 2 folded leaflet # D: Erzeugen eines 3x2-Faltblattes. # E: See commentary at beginning of leaflet.l_tex # D: Siehe die Kommentare am Anfang von leaflet.l_tex # # PENDING: # - The pdf is single column per page. # - Fix land/seascape inversion on side 2. # - Avoid bug.bjccolor & bug.pcl being created from bug.ps # NO_SIDEBAR=YES ALL = le asc dvi lmth pdf ps # pcl # ALL += bjccolor # consumes 2 x 5 Meg. LL=leaflet FOR_PS = $(LL)_e.ps $(LL)_g.ps TARGS = $(LL)_e.asc $(LL)_g.asc \ $(LL)_e.dvi $(LL)_g.dvi $(LL)_e.html $(LL)_g.html $(LL)_e.pdf $(LL)_g.pdf $(LL)_e.ps $(LL)_g.ps # $(LL)_e.pcl $(LL)_g.pcl # TARGS += $(LL)_e.bjccolor $(LL)_g.bjccolor BIM_URL = http://www.berklix.org/bim/ LATEX2HTML_ARGS = -split +0 -address bim-leaflet@berklix._ERASE_.org \ -up_url ${BIM_URL} -up_title Berkeley_In_Munich \ -prev_url ${LEAFLET_URL} -prev_title BIM_Leaflet # -split +0 and -split 0 both fail to put all data in one file LEAFLET_URL = http://www.berklix.org/bim/leaflet/ XDVI_ARGS = -paper 99x210mm CLEAN = WARNINGS \ images.pl images.tex img1.old img1.png img2.png labels.pl share_mk # JHS= http://www.berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/gen/share/mk/ JHS= http://www.berklix.com/src/share/mk/ .if exists( /usr/share/mk/berklix.mk ) all2: ${ALL} # I guess all2 is to avoid colliding with all: in berklix.mk .else all: make fetch_macros .endif check: ls -l ${TARGS} @echo "All exist." clean: @echo "Clean is dangerous as this is a web served directory." @echo "& the .ps files get no text in 5.3, though 4.11 is OK." @# rm -f ${CLEAN} @echo "If you really want to clean, type make _clean" spell: @echo "If you don't have a dual language dictionary, " @echo -n "this will be verbose." sleep 4 ${ISPELL} -t ${LL}.l_tex .if exists(/usr/share/mk/berklix.mk) .include .else fetch_macros: mkdir macros cd macros && fetch ${JHS}/berklix.mk && fetch ${JHS}/berklix.mk @echo "Installing macros - May fail if you aren't root." cd macros && install berklix*.mk /usr/share/mk/ rm -rf macros make .endif