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

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)