home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume16 / conf2 / part01 / Makefile < prev    next >
Makefile  |  1988-09-14  |  1KB  |  50 lines

  1. SHELL=/bin/sh
  2. INSTALL= mv
  3. CFLAGS= -g
  4. SRCS= conf.c confrw.c confrots.c confopts.c confalloc.c confstr.c confprnt.c confsig.c
  5. OBJS= conf.o confrw.o confrots.o confopts.o confalloc.o confstr.o confprnt.o confsig.o
  6. HEADERS= conf.h config.h extern.h structs.h
  7. NEW= xconf
  8. NAME= conf
  9. LISP= conf.el
  10. MAKES= Makefile
  11. DOCDIR= doc
  12. CONFLIB= /usr/lib/conf
  13. CONFSPOOL= /usr/spool/conf
  14. BINDIR= /usr/local/bin
  15. LINT=lint
  16. OWNER=conf
  17. GROUP=conf
  18.  
  19. LIBS= -ltermlib
  20.  
  21. $(NEW): $(OBJS)
  22.     $(CC) $(CFLAGS) -o $(NEW) $(OBJS) $(LIBS)
  23.  
  24. all: $(NEW) install
  25.  
  26. clean:
  27.     rm -f *.o $(NEW) core
  28.  
  29. shar:
  30.     shar MANIFEST Makefile conf.c conf.el > confshar.1
  31.     shar conf.h confalloc.c config.h confopts.c > confshar.2
  32.     shar confprnt.c confrots.c confrw.c > confshar.3
  33.     shar confsig.c confstr.c extern.h structs.h > confshar.4
  34.     shar doc > confshar.5
  35.  
  36. lint:
  37.     $(LINT) $(LIBS) $(SRCS)
  38.  
  39. install:
  40.     cp $(NEW) $(BINDIR)/$(NAME)
  41.  
  42.     -mkdir $(CONFLIB)
  43.  
  44.     cp $(DOCDIR)/confhelp $(CONFLIB)
  45.     -chgrp $(GROUP) $(CONFLIB) $(CONFLIB)/confhelp $(BINDIR)/$(NAME)
  46.     -chown $(OWNER) $(CONFLIB) $(CONFLIB)/confhelp $(BINDIR)/$(NAME)
  47.     -chmod u+s $(BINDIR)/$(NAME)
  48.     -chmod 644 $(CONFLIB)/confhelp
  49.     -chmod 755 $(CONFLIB)
  50.