# makefile for the distributed version of MWEB (Matlab WEB). # read README and Install for more information. # your C compiler, and the compiler flags CC=gcc -DDEBUG -g -DSTAT -DNEWLINES_IN_MACROS -DMATLAB_FLOATING_POINT # where you want the binaries to go #BINDIR=/usr/local/bin/ BINDIR=$$HOME/bin # where you want the TeX and LaTeX macros to go #TEXDIR=/usr/lib/texmf/tex/tex/misc/ #LATEXDIR=/usr/lib/texmf/tex/latex/misc/ TEXDIR=$$HOME/tex LATEXDIR=$$HOME/tex ##### no changes should be necessary below ################## all: mtangle mweave tangle: mtangle weave: mweave mweave: weave.c common.c pathopen.c $(CC) weave.c common.c pathopen.c -o mweave mtangle: mtangle.c common.c pathopen.c $(CC) mtangle.c common.c pathopen.c -o mtangle install: mtangle mweave mweb.tex webkernel.tex cp mtangle $(BINDIR) cp mweave $(BINDIR) cp mweb.tex $(TEXDIR) cp webkernel.tex $(TEXDIR) cp webfiles.sty $(LATEXDIR) cp swebbind.sty $(LATEXDIR) clean: - rm -f *.o mweave mtangle