X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=blobdiff_plain;ds=sidebyside;f=www%2FMakefile;h=2512b12b3a704ce2209b4c1c77acecdb42cb8e9f;hb=be6c1b7ad8eca0b6095337c43389fd642cf65636;hp=f737871d0e2e7433520f55d50271e3c20ba471a3;hpb=73041203f9c387b4596185203b1daebe2f4f30e9;p=egate.git diff --git a/www/Makefile b/www/Makefile index f737871..2512b12 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1,14 +1,14 @@ # Makefile for www gateway utility # Europagate, 1995 # -# $Id: Makefile,v 1.24 1996/01/24 10:13:56 adam Exp $ +# $Id: Makefile,v 1.28 1996/01/31 16:01:45 adam Exp $ # SHELL=/bin/sh # ZDEFS= ZINC=-I../../yaz/include ZLIB=../../yaz/lib/libyaz.a -#MOSILIB=../../xtimosi/src/libmosi.a -lrfc +MOSILIB=../../xtimosi/src/libmosi.a -lrfc LIBIRTCL=../../ir-tcl/libirtcl.a $(ZLIB) $(MOSILIB) #NETLIB=-lnsl -lsocket # @@ -17,7 +17,7 @@ TCLLIB=/usr/local/lib/libtcl7.4.a TCLINC=-I/usr/local/include # WSCRIPTS=egwscript targets.egw query.egw search.egw showfull.egw z39util.tcl \ - mtargets.egw mquery.egw msearch.egw history.egw + mtargets.egw mquery.egw msearch.egw history.egw tform.egw tdefine.egw HSCRIPTS=egwindex.html CONFFILES=ztargets.conf TPROG1=egwcgi @@ -48,19 +48,23 @@ DEFS=$(INCLUDE) $(ZDEFS) -DCGIDIR=\"$(CGIDIR)\" -DEGWDIR=\"$(EGWDIR)\" \ all: $(TPROG1) $(TPROG2) -$(TPROG1): $(P1) +$(TPROG1): $(P1) $(OLIB) $(CC) $(CFLAGS) -o $(TPROG1) $(P1) $(OLIB) $(ZLIB) -$(TPROG2): $(P2) +$(TPROG2): $(P2) $(OLIB) $(CC) $(CFLAGS) -o $(TPROG2) $(P2) $(OLIB) $(LIBIRTCL) \ $(NETLIB) $(TCLLIB) -lm -$(TPROG3): $(P3) +$(TPROG3): $(P3) $(OLIB) $(CC) $(CFLAGS) -o $(TPROG3) $(P3) $(OLIB) $(ZLIB) -install: install.prog install.script +install: install.prog install.script install.gif install.prog: $(TPROG1) $(TPROG2) + @if [ ! -d $(CGIDIR) ]; then \ + echo "Making directory $(CGIDIR)"; \ + mkdir $(CGIDIR); \ + fi @for x in $(TPROG1) $(TPROG2); do \ echo Installing $$x; \ cp $$x $(CGIDIR); \ @@ -76,6 +80,10 @@ install.script: echo "Making directory $(EGWDIR)"; \ mkdir $(EGWDIR); \ fi + @if [ ! -d $(HTDOCS); then \ + echo "Making directory $(HTDOCS)"; \ + mkdir $(HTDOCS); \ + fi @for x in $(WSCRIPTS); do \ echo Installing $$x; \ cp $$x $(EGWDIR)/$$x; \ @@ -88,6 +96,8 @@ install.script: echo Installing $$x; \ cp $$x $(EGWDIR); \ done + +install.gif: @if [ ! -d $(GIFDIR) ]; then \ echo "Making directory $(GIFDIR)"; \ mkdir $(GIFDIR); \