home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Examples / AppKit / Graph / Makefile.postamble < prev    next >
Encoding:
Makefile  |  1992-06-21  |  1.0 KB  |  32 lines

  1.  
  2. # the vers.c file is created by running the vers_string command.  This command
  3. # strips off the version from the name of the directory in which we are
  4. # building.  (See the vers_string man page.)
  5. vers.c:
  6.     vers_string -c Graph > $@
  7.     
  8. # making this forces creation of a new vers.c, with up to date version info
  9. force_version::
  10.     -/bin/rm -f vers.c
  11.  
  12. # whenever we install, we make sure the version info is up to date
  13. install:: force_version
  14.  
  15. # dependencies to force lex'ing before yacc'ing, so things build correctly
  16. token.m: y.tab.h
  17. y.tab.h: expr.m
  18.  
  19. # copy some test documents along with our source when we install
  20. # set files to be readonly and directories to be searchable
  21. installsrc::
  22.     mkdirs $(SRCROOT)/DemoDocs
  23.     cp -r DemoDocs/*.xyzgraph DemoDocs/*.xygraph $(SRCROOT)/DemoDocs
  24.     (cd $(SRCROOT)/DemoDocs; find * ! -type d -exec /bin/chmod 444 {} \; ; find * -type d -exec /bin/chmod 755 {} \; ;)
  25.  
  26.  
  27. # rules for building our precompiled headed
  28. obj profile_obj debug_obj: Graph.p
  29.  
  30. Graph.p: Graph.h $(HFILES)
  31.     cc -precomp Graph.h
  32.