diff options
Diffstat (limited to 'web/nuweb/nuweb0.87b/Makefile')
-rw-r--r-- | web/nuweb/nuweb0.87b/Makefile | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/web/nuweb/nuweb0.87b/Makefile b/web/nuweb/nuweb0.87b/Makefile new file mode 100644 index 0000000000..38b337e475 --- /dev/null +++ b/web/nuweb/nuweb0.87b/Makefile @@ -0,0 +1,63 @@ +CC = cc + +CFLAGS = -O + +TARGET = nuweb +VERSION = 0.87b + +OBJS = main.o pass1.o latex.o html.o output.o input.o scraps.o names.o \ + arena.o global.o + +SRCS = main.c pass1.c latex.c html.c output.c input.c scraps.c names.c \ + arena.c global.c + +.SUFFIXES: .dvi .tex .w .hw + +.w.tex: + nuweb $*.w + +.hw.tex: + nuweb $*.hw + +.tex.dvi: + latex $*.tex + +.w.dvi: + $(MAKE) $*.tex + $(MAKE) $*.dvi + +all: + $(MAKE) $(TARGET).tex + $(MAKE) $(TARGET) + +shar: $(TARGET)doc.tex + shar Makefile README literate.bib nuweb.w \ + $(TARGET)doc.tex $(SRCS) global.h \ + > $(TARGET)$(VERSION).sh + +tar: $(TARGET)doc.tex + tar -cf $(TARGET)$(VERSION).tar Makefile README literate.bib nuweb.w \ + $(TARGET)doc.tex $(SRCS) global.h + +$(TARGET)doc.tex: $(TARGET).tex + sed 's/\\showcodetrue/\\showcodefalse/' $(TARGET).tex > $@ + +clean: + -rm -f *.tex *.log *.dvi *~ *.blg *.lint + +veryclean: + -rm -f *.o *.c *.h *.tex *.log *.dvi *~ *.blg *.lint + +view: $(TARGET).dvi + xdvi $(TARGET).dvi + +print: $(TARGET).dvi + lpr -d $(TARGET).dvi + +lint: + lint $(SRCS) > nuweb.lint + +$(OBJS): global.h + +$(TARGET): $(OBJS) + $(CC) -o $(TARGET) $(OBJS) |