home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume4 / settz / Makefile < prev    next >
Makefile  |  1986-11-30  |  2KB  |  76 lines

  1. # @(#)Makefile    2.1
  2.  
  3. # If you want something other than Eastern United States time used on your
  4. # system, change the line below (after finding the zone you want in the
  5. # time zone files, or adding it to a time zone file).
  6. # Alternately, if you discover you've got the wrong time zone, you can just
  7. #    tzcomp -l rightzone
  8.  
  9. LOCALTIME=    Eastern
  10.  
  11. # Use an absolute path name for TZDIR unless you're just testing the software.
  12.  
  13. TZDIR=        /etc/tzdir
  14.  
  15. # LINTFLAGS is set for 4.1bsd systems.  If you're using System V, you'll want
  16. # to comment out the "LINTFLAGS=" line.
  17.  
  18. LINTFLAGS=    -phbaaxc
  19.  
  20. DEBUG=
  21. LFLAGS=
  22. CFLAGS=        $(DEBUG) -O -DOBJECTID -DTZDIR=\"$(TZDIR)\"
  23.  
  24. TZCSRCS=    tzcomp.c scheck.c strchr.c mkdir.c
  25. TZCOBJS=    tzcomp.o scheck.o strchr.o mkdir.o
  26. TZDSRCS=    tzdump.c settz.c
  27. TZDOBJS=    tzdump.o settz.o
  28. DOCS=        README Makefile settz.3 tzfile.5 tzcomp.8
  29. SOURCES=    tzfile.h $(TZCSRCS) $(TZDSRCS) years.sh
  30. DATA=        asia australasia europe etcetera northamerica pacificnew
  31. ENCHILADA=    $(DOCS) $(SOURCES) $(DATA)
  32.  
  33. all:    REDID_BINARIES tzdump
  34.  
  35. REDID_BINARIES:    $(TZDIR) tzcomp $(DATA) years
  36.     tzcomp -l $(LOCALTIME) -d $(TZDIR) $(DATA)
  37.     cp /dev/null $@
  38.  
  39. tzdump:    $(TZDOBJS)
  40.     $(CC) $(LFLAGS) $(TZDOBJS) -o $@
  41.  
  42. tzcomp:    $(TZCOBJS)
  43.     $(CC) $(LFLAGS) $(TZCOBJS) -o $@
  44.  
  45. $(TZDIR):
  46.     mkdir $@
  47.  
  48. years:    years.sh
  49.     rm -f $@
  50.     cp $? $@
  51.     chmod 555 $@
  52.  
  53. BUNDLE1:    $(DOCS)
  54.     bundle $(DOCS) > BUNDLE1
  55.  
  56. BUNDLE2:    $(SOURCES)
  57.     bundle $(SOURCES) > BUNDLE2
  58.  
  59. BUNDLE3:    $(DATA)
  60.     bundle $(DATA) > BUNDLE3
  61.  
  62. $(ENCHILADA):
  63.     sccs get $(REL) $(REV) $@
  64.  
  65. sure:    $(TZCSRCS) $(TZDSRCS)
  66.     lint $(LINTFLAGS) $(TZCSRCS)
  67.     lint $(LINTFLAGS) $(TZDSRCS)
  68.  
  69. clean:
  70.     rm -f core *.o *.out REDID_BINARIES years tzdump tzcomp BUNDLE \#*
  71.  
  72. CLEAN:    clean
  73.     sccs clean
  74.  
  75. tzdump.o tzcomp.o settz.o:    tzfile.h
  76.