home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-08-18 | 1.1 KB | 44 lines |
- #
- # makefile for directory ccs-lib
- #
-
- # Subdirectories that get made from ccs-lib
- #
- # (subdirectories x11, xview and sun are made indirectly through drivers/X;
- # They are not avaible right now).
-
- # use this line when running separate from standard HIPS2 distribution
- DIRS = lib libscs libsun rlelib tifflib jpeg tools man
-
- TARDIRS = ccs-lib
-
- # for insertion into standard HIPS2 distribution
- TARDIRS2 = lib libscs rlelib tifflib doc include tools man x11 makefile.src
-
- # default action just makes src dirs
-
- all: configure install
-
- clean clean-all install pristine man doc: doit
- @for d in $(DIRS) ; do \
- ( cd $$d ; echo make $@ on $(HERE)$$d ; make $(MFLAGS) $@ ) ; \
- done
- @if [ "$@" = "clean-all" ]; then \
- rm -f Makefile sun4/lib/*; fi
-
- configure:
- @if test ! -f /usr/include/stdlib.h; then \
- echo \# > $(TOPDIR)/include/stdlib.h; \
- else rm -f $(TOPDIR)/include/stdlib.h; fi
-
- tar: doit
- @if test -f Makefile; then \
- make -ik clean-all; fi
- (cd ..; tar cfh ccs_lib.tar $(TARDIRS); compress -v ccs_lib.tar)
-
- tar2: doit
- make clean
- tar cvfh ccs_lib.tar $(TARDIRS2)
-
- doit:
-