Make the generated termkey.h file readonly

This commit is contained in:
Paul LeoNerd Evans 2012-11-30 15:00:21 +00:00
parent d5c3d9c8fe
commit b87ca771bf
1 changed files with 2 additions and 0 deletions

View File

@ -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)