# File Future-Makefile # Last modified on Wed Aug 13 22:11:12 1986 by stolfi PACKAGE = detexify LEXFILES = \ detexify.lex \ breaktex.lex RUNFILES = \ detexify.out \ breaktex.out MANPAGE = manpage.man PACKDIR = $$HOME/macmeu/detexify BIN = /proj/ultrix/bin # *************************************************************** # Entry to bring the package up to date # The "make all" entry should be the first real entry all: $(LEXFILES) $(RUNFILES) $(MANPAGE) # *************************************************************** # Standard entries to remove files from the directories # tidy -- eliminate unwanted files # scratch -- delete derived files in preparation for rebuild tidy: ;\ touch junk.ml; append junk.ml $$HOME/emacs/junk.ml ;\ touch junk.txt; append junk.txt $$HOME/emacs/junk.txt ;\ rm -f ,* .,* .emacs_[0-9]* core a.out *.err ;\ touch @dummy; mv -f @* $$HOME/junk ;\ rm -f foo bar baz quux junk.ml junk.txt scratch: tidy ;\ rm -f *.o *.a *.mu # *************************************************************** # Commands to compile lex source into executable code. # Note the hack to increase YYLMAX from 200 to 2000. # There should be a better way to do this... SUFFIXES: SUFFIXES: .c .lex .out ; .lex.out: ;\ lex -t $*.lex |\ sed 's/# *define *YYLMAX *[0-9]*/# define YYLMAX 2000/' > ,$*.c &&\ cc -o $*.out ,$*.c -ll # *************************************************************** # Standard entries provided for all packages # # install -- update all files; ship to /proj/packages; unlock # ship -- transfer files to /proj/packages; leave locked # get -- transfer files to local directory; lock package # setlock -- lock package (not ordinarily used explicitly) # unlock -- unlock package (not ordinarily used explicitly) # create -- create new /proj/packages component and lock it # install: ;\ make all && make ship && make unlock ship: tidy ;\ $(BIN)/shippackage $(PACKAGE) \ -l $(MACLIB) $(PACKAGE)=/proj/packages/$(PACKAGE) \ -l /usr/man/cat7 $(PACKAGE).7=$(MANPAGE) get: ;\ $(BIN)/getpackage $(PACKAGE) setlock: ;\ $(BIN)/setlockpackage $(PACKAGE) unlock: ;\ $(BIN)/unlockpackage $(PACKAGE) create: ;\ $(BIN)/createpackage $(PACKAGE) # *****************************************************************