home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / database / cbase103 / manx / makefile < prev    next >
Encoding:
Makefile  |  1991-08-22  |  805 b   |  42 lines

  1. #    Copyright (c) 1989 Citadel
  2. #       All Rights Reserved
  3.  
  4. # makefile    1.4 - 91/08/22
  5.  
  6. # manx makefile
  7.  
  8. CC    = cc#        # C compiler
  9. CFLAGS    = -O#        # C compiler options
  10. BINDIR    = /usr/bin#    # bin directory
  11. LINT    = lint -b -p#    # lint command and options
  12. MAN    = manx.man#    # manual file
  13.  
  14. FILES =    makefile   ansi.h     manx.c
  15. SRCS  =    manx.c
  16. OBJS  =    $(SRCS:.c=.o)
  17. MANS  =    manx.c
  18.  
  19. manx:
  20.  
  21. install:
  22.     @if test -s $(BINDIR)/manx = 0;                \
  23.     then                            \
  24.         echo $(BINDIR)/manx exists\.;            \
  25.         echo -n "Do you wish to copy over it? ";    \
  26.         read response;                    \
  27.         case $$response in                \
  28.         y | Y | yes | YES | Yes)    ;;        \
  29.         *) exit 1            ;;        \
  30.         esac                        \
  31.     fi;                            \
  32.     cp manx $(BINDIR)/manx
  33.     @echo manx installed.
  34.  
  35. lint:
  36.     $(LINT) $(SRCS)
  37.  
  38. man:    $(MAN)
  39.  
  40. $(MAN):    $(MANS)
  41.     cat $(MANS) | manx > $@
  42.