aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f745ef4..7ee66a2 100644
--- a/Makefile
+++ b/Makefile
@@ -144,9 +144,11 @@ clean-built:
rm -f $(BUILTMAN) termkey.h
termkey.h: termkey.h.in Makefile
+ rm -f $@
sed -e 's/@@VERSION_MAJOR@@/$(VERSION_MAJOR)/g' \
-e 's/@@VERSION_MINOR@@/$(VERSION_MINOR)/g' \
$< >$@
+ chmod a-w $@
DISTDIR=libtermkey-$(VERSION)