home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume3 / hdiff / Makefile < prev    next >
Encoding:
Makefile  |  1986-11-30  |  1.0 KB  |  51 lines

  1. SRC = hdiff.c remwhite.c stripnl.c stripnl.h hdiff.mk
  2. # also the hdiff help file is source but it is renamed on the copy
  3.  
  4. # change this for your site
  5. INSTALLDIR = .
  6.  
  7.  
  8. hdiff: hdiff.o remwhite.o stripnl.o
  9.     cc -O hdiff.o remwhite.o stripnl.o
  10.     mv a.out hdiff
  11.  
  12. hdiff.o: stripnl.h
  13.     cc -O -c hdiff.c
  14.  
  15. remwhite.o: stripnl.h
  16.     cc -O -USTAND -c remwhite.c
  17.  
  18. stripnl.o: stripnl.h
  19.     cc -O -c stripnl.c
  20.  
  21. clean:
  22.     rm -f hdiff.o remwhite.o stripnl.o hdiff
  23.  
  24. install: hdiff
  25.     cp hdiff $(INSTALLDIR)
  26.  
  27. # distribute hdiff. personal for dennis only.
  28. dist:
  29.     rm -rf /tmp/dpb
  30.     mkdir /tmp/dpb
  31.     cp $(SRC) /tmp/dpb
  32.     cp ../help/hdiff /tmp/dpb/hdiff.hlp    # help file
  33.     (cd /tmp/dpb; make -f hdiff.mk makeshar)
  34.  
  35. makeshar:
  36.     splitfiles *      # split source files into little bundles
  37.     for i in list.* ; \
  38.     do \
  39.         makeshar `cat $$i` > shar.$$i ; \
  40.     done
  41.  
  42.  
  43. # you must run make -f hdiff.mk makeshar first
  44. # sends shar files to mod.sources
  45. # hardcoded for 2 bundles
  46. sendtonet:
  47.     for i in 1 2 ; \
  48.     do \
  49.         Mail < shar.list.$$i -s "hdiff: - part $$i of 2" sources@panda.uucp; \
  50.     done
  51.