aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-11-14 06:27:22 -0500
committerB. Watson <urchlay@slackware.uk>2025-11-14 06:27:22 -0500
commit0f4d0a93434aa7586c9f66c6a48707b561ebf00a (patch)
treeb27276f9b2534a7c4026968e36f21fbdacad7eec /src/Makefile
parent3e2561662e065f9797f66f3c3663c8e271d1f272 (diff)
downloadunalf-0f4d0a93434aa7586c9f66c6a48707b561ebf00a.tar.gz
Generate usage message from comments in the .rst.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index f8b73cf..2c8a31d 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -3,7 +3,12 @@ CFLAGS=-Wall -Wno-unused-label -I../f65 $(COPT)
all: unalf unalf.1 alfsum alfsum.1
-unalf: unalf.o io.o listalf.o extract.o ../f65/f65.o glob.o opts.o
+unalf: unalf.o io.o listalf.o extract.o ../f65/f65.o glob.o opts.o usage.o
+
+usage.o: usage.c
+
+usage.c: mkusage.pl unalf.rst
+ perl mkusage.pl unalf.rst > usage.c
unalf.o: unalf.c unalf.h ../f65/f65.h