karl@typo.umb.edu ("Karl Berry.") (09/26/88)
I do not know what in this Makefile is causing the segmentation fault, but it must be something. Karl. karl@umb.edu % /bin/make -n gcc -O -c tangle.c gcc -O -c common.c gcc -O -o tangle tangle.o common.o make weave.c make weave.o gcc -O -o weave weave.o common.o % make -n -v GNU Make version 3.05, by Richard Stallman and Roland McGrath. Copyright (C) 1988 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Segmentation fault % cat Makefile # Copyright (C) 1987 Princeton University # This file is part of CWEB. # This program by Silvio Levy is based on a program by D. E. Knuth. # It is distributed WITHOUT ANY WARRANTY, express or implied. # $Revision 1.1$ -- Dec 1987 MACROSDIR= /usr/lib/tex/macros DESTDIR= /usr/local/bin/ DESTPREF= WEAVE = ./weave TANGLE = ./tangle SOURCES = weave.web common.web tangle.web ALMOSTALL = common.web tangle.web Makefile README common.c common.h tangle.c \ webman.tex cwebmac.tex examples vms.ch ALL = $(ALMOSTALL) weave.web CFLAGS = -O CC=gcc .SUFFIXES: .tex .dvi .web .print .web.tex: $(WEAVE) $* .tex.dvi: tex $* .web.dvi: $(WEAVE) $* tex $* .web.c: $(TANGLE) $* .web.o: make $*.c make $*.o .dvi.print: qpr -x $*.dvi all: tangle weave tangle: tangle.o common.o $(CC) $(CFLAGS) -o tangle tangle.o common.o weave: weave.o common.o $(CC) $(CFLAGS) -o weave weave.o common.o doc: $(SOURCES) for i in $?; do make `echo $$i | sed "s/web$$/dvi/"`; done @touch doc #leave *.c clean: rm -f -r *.o common.tex weave.tex weave.c tangle.tex *.log *.dvi core weave.web.[12] cweb.* install: all mv weave $(DESTDIR)$(DESTPREF)weave mv tangle $(DESTDIR)$(DESTPREF)tangle cp cwebmac.tex $(MACROSDIR) bundle: $(ALL) sed -n '1,1500 p' weave.web > weave.web.1 sed -n '1501,$$ p' weave.web > weave.web.2 /n/fine/usr/local/bin/shar -m100000 -c -v -f cweb $(ALMOSTALL) weave.web.[12]