summaryrefslogtreecommitdiff
path: root/systems/knuth/local/web/Makefile
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /systems/knuth/local/web/Makefile
Initial commit
Diffstat (limited to 'systems/knuth/local/web/Makefile')
-rw-r--r--systems/knuth/local/web/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/systems/knuth/local/web/Makefile b/systems/knuth/local/web/Makefile
new file mode 100644
index 0000000000..5a71f3c71a
--- /dev/null
+++ b/systems/knuth/local/web/Makefile
@@ -0,0 +1,34 @@
+# Make executable files for this workstation, using the master TeX sources
+
+PFLAGS= -g -I..
+CFLAGS= -g -I..
+PC= gpc
+
+all: tangle weave
+
+%.p: %.ch
+ tangle ../../dist/web/$*.web $*.ch
+# the next line formerly necessary; but not with Linux's (Web2C) tangle
+# mv ../../dist/web/$*.p .
+
+%.ch: ../../dist/web/%.web
+ touch $*.ch
+
+%.o: %.p
+ ${PC} ${PFLAGS} -c $*.p
+
+tangle: tangle.o tangext.o tangext.h
+ pc ${PFLAGS} -o tangle tangle.o tangext.o
+
+tangext.o: tangext.c ../GPCtypes.h
+
+weave: weave.o tangext.o tangext.h
+ pc ${PFLAGS} -o weave weave.o tangext.o
+
+install: # doit make install PROG=tangle
+ mv ${PROG} /usr/local/bin/${PROG}
+
+clean: # we save tangle.p for emergency rebooting
+# rm -f weave.p *.o *~ ../../dist/web/*.pool
+ rm -f weave.p *.o *~ *.pool
+