######################################################################## ## $Id: Makefile,v 1.2 2002/07/31 04:25:02 ehood Exp $ ######################################################################## ## Note: GNU make is required ######################################################################## .PHONY: default all bin release doc clean src_clean TOP = $(shell pwd) SUBDIRS = \ # End SUBDIRS ## Set default rule default: all PERL = perl ######################################################################## all: bin doc ## To satisfy release process we must have a `release' target. release: all src_clean ## Build scripts in bin bin: $(PERL) -cw $(TOP)/bin/cvs-info $(PERL) -cw $(TOP)/bin/cvs-kwstrip $(PERL) -cw $(TOP)/bin/find-jpkgs $(PERL) -cw $(TOP)/bin/logcmd $(PERL) -cw $(TOP)/bin/pdoc $(PERL) -cw $(TOP)/bin/release ## Create documentation doc: -@mkdir -p $(TOP)/doc/bin pod2html --header --infile=$(TOP)/bin/cvs-info \ --outfile=$(TOP)/doc/bin/cvs-info.html pod2html --header --infile=$(TOP)/bin/cvs-kwstrip \ --outfile=$(TOP)/doc/bin/cvs-kwstrip.html pod2html --header --infile=$(TOP)/bin/find-jpkgs \ --outfile=$(TOP)/doc/bin/find-jpkgs.html pod2html --header --infile=$(TOP)/bin/logcmd \ --outfile=$(TOP)/doc/bin/logcmd.html pod2html --header --infile=$(TOP)/bin/pdoc \ --outfile=$(TOP)/doc/bin/pdoc.html pod2html --header --infile=$(TOP)/bin/release \ --outfile=$(TOP)/doc/bin/release.html distclean: clean ## Clean up all derived files clean: src_clean /bin/rm -f $(TOP)/doc/bin/*.html ## Clean up derived files, but keep main ones that would be referenced ## by other projects. Examples: libraries, jars, docs. src_clean: /bin/rm -f $(TOP)/pod2htm*