########################################################################### # # Makefile -- gsdl # A component of the Greenstone digital library software # from the New Zealand Digital Library Project at the # University of Waikato, New Zealand. # # Copyright (C) 1999 The New Zealand Digital Library Project # # # 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. # ########################################################################### PACKAGE = @PACKAGE@ VERSION = @VERSION@ @SET_MAKE@ CC = @CC@ CPP = @CXX@ CFLAGS = @CFLAGS@ LIBS = @LIBS@ MDEFINES = TOPSRC = `pwd` COMPILE = $(CC) -c SOURCES = OBJECTS = ALLFILES = $(OBJECTS) INSTALLDIRS = src/txt2db src/db2txt src/hashfile OTHERDIRS = packages/mg lib src/colservr src/recpt collect/cstr/src/recpt collect/niupepa/src/recpt all: sed s^XXXX^$(TOPSRC)^ lib/gsdlhome.h.example > lib/gsdlhome.h for odir in $(OTHERDIRS); do \ echo making $@ in $$odir; \ (cd $$odir && $(MAKE) $(MDEFINES) $@) || exit 1; \ done for idir in $(INSTALLDIRS); do \ echo making $@ in $$idir; \ (cd $$idir && $(MAKE) $(MDEFINES) $@) || exit 1; \ echo installing $$idir; \ (cd $$idir && $(MAKE) install) || exit 1; \ done clean: rm -f Makefile config.cache config.h config.log stamp-h rm lib/gsdlhome.h for subdir in $(INSTALLDIRS) $(OTHERDIRS); do \ echo cleaning $@ in $$subdir; \ (cd $$subdir && $(MAKE) clean) || exit 1; \ done # For an explanation of the following Makefile rules, see node # `Automatic Remaking' in GNU Autoconf documentation. Makefile: Makefile.in config.status CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status config.status: configure ./config.status --recheck configure: configure.in aclocal.m4 cd $(srcdir) && autoconf config.h: stamp-h stamp-h: config.h.in config.status CONFIG_FILES= CONFIG_HEADERS=config.h ./config.status config.h.in: stamp-h.in stamp-h.in: configure.in aclocal.m4 acconfig.h cd $(srcdir) && autoheader $(TOUCH) $(srcdir)/stamp-h.in