home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / drdobbs / ddjcompr / compact / makefile < prev    next >
Makefile  |  1990-11-05  |  921b  |  44 lines

  1. #    Makefile for the compact program.
  2. #
  3. #    @(#)Makefile    1.7 10/27/90
  4. #
  5. #    This is FREE software in the PUBLIC DOMAIN.
  6. #
  7. #    This program may be used only for research into data
  8. #    compression techniques.  See WARNING section in
  9. #    compact(1) manual page for further discussion.
  10.  
  11. BIN    = /usr/local/bin
  12. MAN    = /usr/man/mann
  13. MANSUF    = n
  14.  
  15. SHAR    = README Makefile compact.1 compact.c share.c smtest.c 
  16.  
  17. CFLAGS = -O
  18.  
  19. compact: compact.o share.o
  20.     cc -o compact compact.o share.o
  21.  
  22. smtest: smtest.o share.o
  23.     cc -o smtest smtest.o share.o
  24.  
  25. install: compact compact.1
  26.     rm -f $(BIN)/compact $(BIN)/uncompact
  27.     cp compact $(BIN)/compact
  28.     ln $(BIN)/compact $(BIN)/uncompact
  29.     cp compact.1 $(MAN)/compact.$(MANSUF)
  30.  
  31. shar:    $(SHAR)
  32.     shar $(SHAR) >compact.shar
  33.  
  34. tar:    $(SHAR)
  35.     tar cf compact.tar $(SHAR)
  36.  
  37. unget:    clean
  38.     @x=;\
  39.     for i in $(SHAR); do [ -r $$i -a \! -w $$i ] && x="$$x $$i"; done;\
  40.     echo rm -f $$x; rm -f $$x
  41.  
  42. clean:
  43.     rm -f compact smtest *.o
  44.