summaryrefslogtreecommitdiff
path: root/support/c2latex/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 /support/c2latex/Makefile
Initial commit
Diffstat (limited to 'support/c2latex/Makefile')
-rw-r--r--support/c2latex/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/support/c2latex/Makefile b/support/c2latex/Makefile
new file mode 100644
index 0000000000..332c3e3b0e
--- /dev/null
+++ b/support/c2latex/Makefile
@@ -0,0 +1,35 @@
+# c2latex Makefile
+# @(#)Makefile 1.1 91/01/16
+
+CFLAGS = -O
+SRCS = c2latex.c
+PROG = c2latex
+
+all: $(PROG)
+
+$(PROG): $(SRCS)
+ $(CC) $(CFLAGS) -o $@ $(SRCS)
+
+install: $(DEST)/$(PROG)
+
+$(DEST)/$(PROG): $(SRCS)
+ make $(PROG)
+ cp $(PROG) $(DEST)
+
+doc: $(PROG).dvi
+
+$(PROG).dvi: $(PROG).tex
+ latex $(PROG)
+
+$(PROG).tex: $(PROG) $(PROG).c
+ $(PROG) $(PROG).c $@
+
+clean:
+ -rm $(PROG) $(PROG).??? $(PROG).shar
+
+dist: $(PROG).shar
+
+$(PROG).shar: Makefile $(SRCS)
+ shar Makefile $(SRCS) > $@
+
+.PHONY: all doc install clean dist