# Top level Makefile for the Web - Z39.50 gateway # Europagate, 1995-1996. # # $Id: Makefile.web,v 1.1 1996/08/28 08:03:45 adam Exp $ # SHELL=/bin/sh MAKE=make #CC=cc CPP=$(CC) -E VERSION=1.0 # Install directories HTTPDDIR=/usr/local/etc/httpd CGIDIR=$(HTTPDDIR)/cgi-bin HTDOCS=$(HTTPDDIR)/htdocs EGWDIR=$(HTTPDDIR)/egw GIFDIR=$(HTDOCS)/egwgif # Location of Tcl TCLLIB=/usr/local/lib/libtcl7.5.a -lm TCLINC=-I/usr/local/include # Location of IrTcl IRTCLDIR=../../ir-tcl IRTCLLIB=$(IRTCLDIR)/libirtcl.a IRTCLINC=-I$(IRTCLDIR) # Other libraries needed on some systems #ELIB=-lnsl -lsocket # If you are using YAZ uncomment these lines ZINC=-I../../yaz/include ZLIB=../../yaz/lib/libyaz.a ZDEFS= # End of settings --------------------------------------------- # You probably don't have to edit the things below. SUBDIR=res+log util www all: for i in $(SUBDIR); do cd $$i; if $(MAKE) CFLAGS="$(CFLAGS)" CC="$(CC)" ZINC="$(ZINC)" ZLIB="$(ZLIB)" CPP="$(CPP)" ELIB="$(ELIB)" ZDEFS="$(ZDEFS)" TCLLIB="$(TCLLIB)" TCLINC="$(TCLINC)" IRTCLLIB="$(IRTCLLIB)" IRTCLINC="$(IRTCLINC)" EGWDIR="$(EGWDIR)"; then cd ..; else exit 1; fi; done dep depend: for i in $(SUBDIR); do cd $$i; if $(MAKE) CFLAGS="$(CFLAGS)" CC="$(CC)" ZINC="$(ZINC)" CPP="$(CPP)" REGEXINC="$(REGEXINC)" ZDEFS="$(ZDEFS)" TCLINC="$(TCLINC)" IRTCLINC="$(IRTCLINC)" depend; then cd ..; else exit 1; fi; done install: cd www; $(MAKE) HTTPDDIR="$(HTTPDDIR)" CGIDIR="$(CGIDIR)" HTDOCS="$(HTDOCS)" EGWDIR="$(EGWDIR)" GIFDIR="$(GIFDIR)" install clean: -rm -f lib/*.a for i in $(SUBDIR); do (cd $$i; $(MAKE) clean); done distclean: clean cleandepend cleandepend: for i in $(SUBDIR); do (cd $$i; \ if sed '/^#Depend/q' Makefile.tmp; then \ mv -f Makefile.tmp Makefile; fi; rm -f .depend); done taildepend: for i in $(SUBDIR); do (cd $$i; \ if sed 's/^if/#GNUif/'Makefile.tmp; then \ mv -f Makefile.tmp Makefile; fi); done gnudepend: for i in $(SUBDIR); do (cd $$i; \ if sed '/^#Depend/q' Makefile.tmp;then \ mv -f Makefile.tmp Makefile; fi); done distribution: echo "Making distribution version $(VERSION). Did you commit?" if [ -d tmp ]; then \ rm -fr tmp; \ fi mkdir tmp; cd tmp; cvs export -f -D now egate cd tmp/egate/www; rm *wais*.[ch] cd tmp; mv egate egate-$(VERSION) cd tmp/egate-$(VERSION); make taildepend cd tmp/egate-$(VERSION)/doc; make all cd tmp; tar zcf ../egate-$(VERSION).tar.gz egate-$(VERSION) rm -fr tmp