summary refs log tree commit diff
path: root/bin/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-12-15 23:52:37 -0500
committerJune McEnroe <june@causal.agency>2020-12-15 23:52:37 -0500
commit94f14c5bb6d85ae56b8442dd9fae6b724547c9b9 (patch)
treea2210b871c036bd9b44367d0c2f33ef8a305829e /bin/Makefile
parentAdd modem -r flag to set baud rate (diff)
downloadsrc-94f14c5bb6d85ae56b8442dd9fae6b724547c9b9.tar.gz
src-94f14c5bb6d85ae56b8442dd9fae6b724547c9b9.zip
Add bibsort
My first perl script! hi doesn't have syntax highlighting for perl, and
I don't think I could sanely implement it, but oh well.
Diffstat (limited to 'bin/Makefile')
-rw-r--r--bin/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/bin/Makefile b/bin/Makefile
index 3ba877c1..5691b0fc 100644
--- a/bin/Makefile
+++ b/bin/Makefile
@@ -20,6 +20,7 @@ LDLIBS.title = -lcurl
 -include config.mk
 
 BINS += beef
+BINS += bibsort
 BINS += bit
 BINS += c
 BINS += dtch
@@ -65,12 +66,18 @@ tls: meta ${BINS_TLS}
 
 meta: .gitignore tags
 
+.SUFFIXES: .pl
+
 .c:
 	${CC} ${CFLAGS} ${LDFLAGS} $< ${LDLIBS.$@} -o $@
 
 .o:
 	${CC} ${LDFLAGS} $< ${LDLIBS.$@} -o $@
 
+.pl:
+	cp -f $< $@
+	chmod a+x $@
+
 hi: hi.c
 	${CC} ${CFLAGS} ${LDFLAGS} hi.c ${LDLIBS.$@} -o $@
 	./hi -c
@@ -127,11 +134,14 @@ ${HTMLS}: html.sh scheme hi ttpre
 .h.html:
 	sh html.sh $< man3/${<:.h=.3} > $@
 
+.y.html:
+	sh html.sh $< man1/${<:.y=.1} > $@
+
 .sh.html:
 	sh html.sh $< man1/${<:.sh=.1} > $@
 
-.y.html:
-	sh html.sh $< man1/${<:.y=.1} > $@
+.pl.html:
+	sh html.sh $< man1/${<:.pl=.1} > $@
 
 index.html: Makefile README.7
 	sh html.sh Makefile README.7 \