home *** CD-ROM | disk | FTP | other *** search
/ PC Press 1997 July / Sezamfile97_1.iso / msdos / c / cbase11.a03 / CBASE11.ZIP / MANX / UNIX.MAK < prev   
Makefile  |  1993-01-01  |  1KB  |  54 lines

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