home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / ccs / ccs-11.lha / ccs-lib / makefile.src < prev    next >
Encoding:
Makefile  |  1993-08-18  |  1.1 KB  |  44 lines

  1. #
  2. # makefile for directory ccs-lib
  3. #
  4.  
  5. # Subdirectories that get made from ccs-lib
  6. #
  7. # (subdirectories x11, xview and sun are made indirectly through drivers/X;
  8. # They are not avaible right now).
  9.  
  10. # use this line when running separate from standard HIPS2 distribution
  11. DIRS = lib libscs libsun rlelib tifflib jpeg tools man
  12.  
  13. TARDIRS = ccs-lib
  14.  
  15. # for insertion into standard HIPS2 distribution
  16. TARDIRS2 = lib libscs rlelib tifflib doc include tools man x11 makefile.src 
  17.  
  18. # default action just makes src dirs
  19.  
  20. all: configure    install
  21.   
  22. clean clean-all install pristine man doc: doit
  23.     @for d in $(DIRS) ; do \
  24.         ( cd $$d ; echo make $@ on $(HERE)$$d ; make $(MFLAGS) $@ ) ; \
  25.     done
  26.     @if [ "$@" = "clean-all" ];    then    \
  27.         rm -f Makefile sun4/lib/*;    fi
  28.  
  29. configure:
  30.     @if test ! -f /usr/include/stdlib.h;    then    \
  31.         echo    \# > $(TOPDIR)/include/stdlib.h;    \
  32.     else    rm -f $(TOPDIR)/include/stdlib.h;    fi
  33.  
  34. tar:    doit
  35.     @if test -f Makefile;    then    \
  36.         make -ik clean-all;    fi
  37.     (cd ..;    tar cfh ccs_lib.tar $(TARDIRS); compress -v ccs_lib.tar)
  38.  
  39. tar2:    doit
  40.     make clean
  41.     tar cvfh ccs_lib.tar $(TARDIRS2)
  42.  
  43. doit:
  44.