aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-11-30 15:00:21 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-11-30 15:00:21 +0000
commitb87ca771bf103b21abf53ef4186aa1adaf002541 (patch)
tree205fa1ab98bc6b20d94cb444f2910848142d2683
parentd5c3d9c8fe500340c081ea3e0a4b575b3369d0dd (diff)
downloadtermo-b87ca771bf103b21abf53ef4186aa1adaf002541.tar.gz
termo-b87ca771bf103b21abf53ef4186aa1adaf002541.tar.xz
termo-b87ca771bf103b21abf53ef4186aa1adaf002541.zip
Make the generated termkey.h file readonly
-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)