home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume3 / getline / Makefile < prev   
Encoding:
Makefile  |  1989-02-03  |  880 b   |  42 lines

  1. # getline -- a getline to go with fgets
  2. # BINDIR is where to put the executable.
  3. # MANDIR is where the manual pages go, and MANEXT is the extension.
  4. # for the man pages, e.g., getline.1 or getline.l or getline.m.
  5.  
  6. BINDIR = /usr/local   -- watch out!
  7. MANDIR = /usr/man/manl
  8. MANEXT = l
  9.  
  10. # These should all just be right if the above ones are.
  11. DIRNAME = $(BINDIR)/getline
  12. DIRNAME_M = $(MANDIR)/getline.$(MANEXT)
  13. LDFLAGS =
  14. CFLAGS = -g -DTEST
  15.  
  16. getline: getline.c
  17.     $(CC) $(CFLAGS) $(LDFLAGS) -o getline getline.c
  18.     @-size getline
  19.  
  20. install: $(DIRNAME_M)
  21.  
  22. $(DIRNAME): getline.c
  23.     $(CC) $(LDFLAGS) -o getline getline.c
  24.     install -c -m 755 getline $(DIRNAME)
  25.  
  26. $(DIRNAME_M): getline.1
  27.     cp getline.1 $(DIRNAME_M)
  28.     chmod 644 $(DIRNAME_M)
  29.  
  30.  
  31.  
  32. lint:
  33.     lint getline.c
  34. tags:
  35.     ctags -w getline.c
  36. getline.shar:
  37.     shar getline.c Makefile getline.1 > getline.shar
  38. clean:
  39.     rm -f a.out core *.o getline
  40.