X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/tweak/blobdiff_plain/6e182d98f1e2191523a4a0b8532a73819d6dca8d..f1b6c467416253ae99e79667a700f811247364fb:/Makefile diff --git a/Makefile b/Makefile index 339b0e7..a2286ec 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ endif .c.o: $(CC) $(CFLAGS) $*.c -all: tweak tweak.1 +all: tweak tweak.1 btree.html tweak: $(TWEAK) $(LINK) -o tweak $(TWEAK) $(LIBS) @@ -27,8 +27,21 @@ tweak: $(TWEAK) tweak.1: manpage.but halibut --man=$@ $< +btree.html: btree.but + halibut --html=$@ $< + +# Ensure tweak.h reflects this version number, and then run a +# command like `make release VERSION=3.00'. +release: tweak.1 btree.html + mkdir -p reltmp/tweak-$(VERSION) + for i in *.c *.h *.but tweak.1 btree.html Makefile; do \ + ln -s ../../$$i reltmp/tweak-$(VERSION); \ + done + (cd reltmp; tar chzvf ../tweak-$(VERSION).tar.gz tweak-$(VERSION)) + rm -rf reltmp + clean: - rm -f *.o tweak + rm -f *.o tweak tweak.1 btree.html main.o: main.c tweak.h keytab.o: keytab.c tweak.h