### file.make -- makefile template for ordinary files # $Id: file.make,v 1.6 2007-05-10 15:55:20 steve Exp $ # COPYRIGHT Stephen R. Savitzky; HyperSpace Express # This file is free software licenced under LGPL v2.0 or later. ######################################################################## # # This makefile contains rules for ordinary files # ######################################################################## ### Usage: # MYNAME= # TOPDIR=../../.... # DOTDOT= # (the following lines are standard:) # MF_DIR=$(TOPDIR)/Config/makefiles # include $(MF_DIR)/file.make ### Targets: # all build executables, etc. # doc build documentation # clean remove trash # setup initialize Makefile and other essential files ### Note: # specialized subtrees may use a subpath, typically called SRCDIR, # from which TOPDIR can be derived. DOTDOT may be relative to either # SRCDIR or TOPDIR, as necessary. ifeq ($(strip $(MYPATH)),) MYPATH=$(DOTDOT)/$(MYNAME) endif all:: @echo "Building in" $(MYNAME) doc:: @echo "Documenting in" $(MYNAME) clean:: @echo "Cleaning in" $(MYNAME) rm -f *~ *.bak *.log *.o *.obj setup:: @echo "Setting up in" $(MYNAME) setup:: HEADER.html @echo "HEADER.html set up in $(MYNAME)." HEADER.html: @echo "

$(MYPATH)

" > $@ @echo "

[..]" >> $@ @echo " [files]

" >> $@ @echo "" >> $@ @echo "

Annotated Contents

" >> $@ @echo "

Directories

" >> $@ @echo "
" >> $@ @echo "
" >> $@ @echo "
" >> $@ @echo "
" >> $@ @echo "

Files

" >> $@ @echo "
" >> $@ @echo "
" >> $@ @echo "
" >> $@ @echo "
" >> $@ @echo "
" >> $@ @echo "Copyright © 2000 HyperSpace Express
" >> $@ @echo "$$"Id"$$" >> $@ @echo "
" >> $@