home *** CD-ROM | disk | FTP | other *** search
/ ftp.muug.mb.ca / 2014.06.ftp.muug.mb.ca.tar / ftp.muug.mb.ca / pub / src / gopher / gopher1.01 / Makefile < prev    next >
Makefile  |  1992-06-24  |  1KB  |  51 lines

  1. include Makefile.config
  2.  
  3. all: objects server client
  4. server: gopherd/gopherd
  5. client: gopher/gopher
  6. objects: object/libgopher.a
  7.  
  8. gopherd/gopherd: objects
  9.     @echo "Making server"
  10.     @if [ -f /sdmach -a -d ./ir ]; then \
  11.         (echo "Making server with NeXT and WAIS searching";\
  12.          cd gopherd; $(MAKE) $(MFLAGS) "SEARCH=-DNEXTSEARCH -DWAISSEARCH" nextwais);\
  13.     elif [ -f /sdmach ]; then \
  14.         (echo "Making server with NeXT searching";\
  15.          cd gopherd; $(MAKE) $(MFLAGS) "SEARCH=-DNEXTSEARCH" next); \
  16.     elif [ -d ./ir ]; then \
  17.         (echo "Making server with WAIS searching";\
  18.          cd gopherd; $(MAKE) $(MFLAGS) "SEARCH=-DWAISSEARCH" wais); \
  19.     else (echo "Making data server"; cd gopherd; $(MAKE) $(MFLAGS) none) \
  20.     fi
  21.  
  22. gopher/gopher: object/libgopher.a
  23.     @echo "Making client"
  24.     (cd gopher; $(MAKE) $(MFLAGS))
  25.  
  26. object/libgopher.a:
  27.     @echo "Making Objects"
  28.     (cd object; $(MAKE) $(MFLAGS))
  29.  
  30. install:
  31.     (cd gopher; $(MAKE) $(MFLAGS) install);
  32.     (cd gopherd; $(MAKE) $(MFLAGS) install);
  33.     (cd doc; $(MAKE) install)
  34.  
  35. clean:
  36.     (cd gopher;     $(MAKE) $(MFLAGS) clean)
  37.     (cd gopherd;     $(MAKE) $(MFLAGS) clean)
  38.     (cd object;     $(MAKE) $(MFLAGS) clean)
  39.     (cd mindexd;     $(MAKE) $(MFLAGS) clean)
  40.     (cd doc;     $(MAKE) $(MFLAGS) clean)
  41.     -rm -f "examples/Sample Directory/wais-index/index."*
  42.  
  43. spotless: clean
  44.     -rm -f *~
  45.  
  46. tar: spotless
  47.     -rm  -f ir ui
  48.     HERE=`basename $$PWD`; \
  49.     cd ..; tar cvf - $$HERE| compress - > $$HERE.tar.Z
  50.  
  51.