# # PFML Makefile # Daniel Kahlin # # to build: # (bash) # > export PLACE=HOME; gmake all # (csh/tcsh) # > setenv PLACE HOME; gmake all # # to clean and build: # (bash) # > export PLACE=HOME; gmake clean; gmake all # (csh/tcsh) # > setenv PLACE HOME; gmake clean; gmake all # # to build distribution: # > gmake dist # # # the source documents # (the actual documents to be processed by pfml) # SOURCES = index.pfml # # the needed includes # (these are not really passed through pfml # only used for dependencies.) # INCL = pfmlrc.pfml linkdefs.pfml # # the needed extra files (gfx etc...) # (these are only included in the dist archive) # EXTRA = kahlin_icon.gif pfml.pl # # the archive file # ARCHIVE = pfml.tar.gz ################################################ # DO NOT MODIFY ANYTHING AFTER THIS LINE # ################################################ PFML=pfml.pl CP=cp RM=rm TAR=tar # check place ifeq (${PLACE},) PFMLOPTS=-v else PFMLOPTS=-v -p ${PLACE} endif # how to build .html from .pfml .SUFFIXES: .html .pfml %.html: %.pfml $(PFML) ${PFMLOPTS} $< # targets TARGETS = $(SOURCES:.pfml=.html) # # make everything # all: $(TARGETS) # dependencies for targets $(TARGETS): $(INCL) Makefile # # make the distribution # dist: $(TAR) zcf $(ARCHIVE) $(SOURCES) $(INCL) $(EXTRA) Makefile # # clean out old targets # clean: -$(RM) -f *.html -$(RM) -f *~ \#*\# # # end of make #