home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-01-23 | 920 b | 26 lines |
-
- # the vers.c file is created by running the vers_string command. This command
- # strips off the version from the name of the directory in which we are
- # building. (See the vers_string man page.)
- vers.c:
- vers_string -c Graph > $(SYMROOT)/$@
-
- # making this forces creation of a new vers.c, with up to date version info
- force_version::
- -/bin/rm -f $(SYMROOT)/vers.c
-
- # whenever we install, we make sure the version info is up to date
- install:: force_version
-
- # dependencies to force lex'ing before yacc'ing, so things build correctly
- token.m: y.tab.h
- y.tab.h: expr.m
-
- # copy some test documents along with our source when we install
- # set files to be readonly and directories to be searchable
- installsrc::
- mkdirs $(SRCROOT)/DemoDocs
- cp -r DemoDocs/*.xyzgraph DemoDocs/*.xygraph $(SRCROOT)/DemoDocs
- (cd $(SRCROOT)/DemoDocs; find * ! -type d -exec /bin/chmod 444 {} \; ; find * -type d -exec /bin/chmod 755 {} \; ;)
-
-