## ## $Id: Makefile,v 1.9 2004/01/21 20:01:34 dgc Exp $ ## ## Uncomment to enable source-code embedding. If you don't have the ## "embed" program, comment these macros out. #EMBED_SH= /opt/bin/embed.sh #EMBED_H = `pwd`/embed_code.h #EMBED = -I`pwd` -D'EMBED_SH="$(EMBED_SH)"' PROGRAM = pipeline DOCDIR = doc SRCS = pipeline.c dbuf.c HDRS = dbuf.h MISC = README TODO Makefile $(DOCDIR)/man.m4 $(DOCDIR)/$(PROGRAM).man4 DOCS = $(DOCDIR)/$(PROGRAM).1 \ $(DOCDIR)/$(PROGRAM).txt $(DOCDIR)/$(PROGRAM).html \ $(DOCDIR)/$(PROGRAM).ps $(DOCDIR)/$(PROGRAM).pdf #DEBUG = -DDEBUG CFLAGS = -g $(DEBUG) $(EMBED) LDFLAGS = -g all: $(PROGRAM) doc dbuf.o: dbuf.c dbuf.h pipeline.o: pipeline.c dbuf.h $(EMBED_H) $(PROGRAM): pipeline.o dbuf.o $(CC) $(LDFLAGS) -o $(PROGRAM) pipeline.o dbuf.o $(EMBED_H): $(EMBED_SH) $(SRCS) $(HDRS) $(MISC) sh $(EMBED_SH) $(SRCS) $(HDRS) $(MISC) doc: $(DOCS) $(DOCDIR)/$(PROGRAM).1: $(DOCDIR)/$(PROGRAM).man4 $(DOCDIR)/man.m4 cd $(DOCDIR); m4 $(PROGRAM).man4 | egrep -v '^ *$$' >$(PROGRAM).1 $(DOCDIR)/$(PROGRAM).txt: $(DOCDIR)/$(PROGRAM).1 cd $(DOCDIR); tbl $(PROGRAM).1 | nroff -man >$(PROGRAM).txt $(DOCDIR)/$(PROGRAM).html: $(DOCDIR)/$(PROGRAM).1 cd $(DOCDIR); tbl $(PROGRAM).1 | groff -Thtml -man >$(PROGRAM).html $(DOCDIR)/$(PROGRAM).ps: $(DOCDIR)/$(PROGRAM).1 cd $(DOCDIR); tbl $(PROGRAM).1 | groff -Tps -man >$(PROGRAM).ps $(DOCDIR)/$(PROGRAM).pdf: $(DOCDIR)/$(PROGRAM).ps cd $(DOCDIR); ps2pdf $(PROGRAM).ps $(PROGRAM).pdf clean: rm -f *.o core $(PROGRAM) *~ $(EMBED_H) distclean: clean # rm -f Makefile confdefs.h config.cache config.h config.log config.status rm -f $(DOCS) $(DOCDIR)/grohtml_*.png cvsclean: distclean rm -rf configure autom4te.cache