home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume10 / qterm / Makefile next >
Encoding:
Makefile  |  1987-07-29  |  949 b   |  49 lines

  1. #
  2. # $Header: Makefile,v 3.1 87/07/22 09:36:13 mcooper Exp $
  3. #
  4. # Makefile for QTerm
  5. #
  6.  
  7. #
  8. # If you change DIR, run "make reconfig".
  9. #
  10. DIR = /usr/public
  11.  
  12. BIN = $(DIR)/bin
  13. MAN = $(DIR)/man/man1
  14.  
  15. #
  16. # TABFILE should be set to the location you want the qterm table
  17. # file placed in.
  18. #
  19. TABFILE = $(DIR)/lib/qtermtab
  20.  
  21. CONFIGFILES = Makefile qterm.1
  22.  
  23. OBJS = qterm.o
  24. #
  25. # Add "-DUSG5" to $(CFLAGS) below, if your system is Unix System V.
  26. #
  27. CFLAGS = -O -DTABFILE=\"$(TABFILE)\"
  28.  
  29. qterm: $(OBJS) qterm.h
  30.     cc $(CFLAGS) $(OBJS) -o qterm
  31.  
  32. reconfig:
  33.     -@for i in $(CONFIGFILES); do \
  34.                 echo ReConfiguring $$i...;\
  35.         sed "s;/usr/public;$(DIR);g" < $$i > $$i.tmp;\
  36.         mv -f $$i.tmp $$i;\
  37.         done
  38.  
  39. shar:
  40.     shar README Makefile qtermtab qterm.c qterm.h qterm.1 > qterm.shar
  41.  
  42. clean:
  43.     rm -f *.o core log *~ \#* qterm qterm.shar o
  44.  
  45. install: qterm qterm.1 qtermtab
  46.     install qterm $(BIN)
  47.     install -c -m 644 qterm.1 $(MAN)
  48.     install -c -m 644 qtermtab $(TABFILE)
  49.