# # Copyright (c) 1994, 1995, 1996 Gunther Schadow. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # Variables # TOPDIR := . THISDIR := . SUBDIRS := bin lib gen hl7 astm doc apps old-llp JUNK := bootstrap-stamp install-stamp H_SRCS := pg_config.h pg_site.h pg_defs.h all: bootstrap includes.all depend.all lib.all progs.all world: $(MAKE) clean.all $(MAKE) sourceclean.all $(MAKE) undepend.all $(MAKE) bootstrap $(MAKE) source.all $(MAKE) includes.all $(MAKE) depend.all $(MAKE) lib.all $(MAKE) progs.all veryclean: clean.all sourceclean.all undepend.all include $(TOPDIR)/GNUmakefile.inc install: install-stamp install-stamp: rm -fr $(PGINCLUDE).old || true mv $(PGINCLUDE) $(PGINCLUDE).old || true $(MKDIRHIER) $(PGINCLUDE) || true $(MKDIRHIER) $(PGLIB) || true rm -fr $(PGBIN).old || true mv $(PGBIN) $(PGBIN).old || true $(MKDIRHIER) $(PGBIN) || true $(MKDIRHIER) $(PGETC) || true $(MKDIRHIER) $(PGCODE) || true $(MKDIRHIER) $(PGDOC) || true $(MKDIRHIER) $(PGLOG) || true $(MKDIRHIER) $(PGSPOOL) || true touch $@ $(MAKE) install.all rm -f $@ $(MAKE) install-bin.all distclean: unconfigure find . -name '*~' -exec rm \{\} \; find . -name '#*#' -exec rm \{\} \; find . -name '*.orig' -exec rm \{\} \; find . -name '*.rej' -exec rm \{\} \; find . -name '*.bak' -exec rm \{\} \; find . -name '*.o' -exec rm \{\} \; find . -name 'lib*.a' -exec rm \{\} \; # # CVS related rules # cvs-add: distclean find . \( -name "*.o" \ $(FIND_OR) -name "*.core" \ $(FIND_OR) -name "core" \ $(FIND_OR) -name "*~" \ $(FIND_OR) -name "#*#" \) -exec rm -f \{\} \; find . \( -type d ! -name "CVS" \) -exec etc/cvsadd \{\} \; cvs-remove: cvs remove cvs-commit: cvs-add cvs-remove cvs commit # # Bootstrap # bootstrap: bootstrap-stamp bootstrap-stamp: includes lib/compat lib/misc gen hl7/standard touch $@ lib/compat lib/misc hl7/standard gen:: cd $@ ; $(MAKE) source.all includes.all depend.all all.all # # Configuratiuon # unconfigure: ./CONF -u 0 config.mk pg_config.h: @echo @echo Please link the configuration files from ./config @echo '$ ./CONF ' @exit 1 ### Do not change this line, make depend uses it! ###