Make the generated termkey.h file readonly
This commit is contained in:
parent
d5c3d9c8fe
commit
b87ca771bf
2
Makefile
2
Makefile
|
@ -144,9 +144,11 @@ clean-built:
|
||||||
rm -f $(BUILTMAN) termkey.h
|
rm -f $(BUILTMAN) termkey.h
|
||||||
|
|
||||||
termkey.h: termkey.h.in Makefile
|
termkey.h: termkey.h.in Makefile
|
||||||
|
rm -f $@
|
||||||
sed -e 's/@@VERSION_MAJOR@@/$(VERSION_MAJOR)/g' \
|
sed -e 's/@@VERSION_MAJOR@@/$(VERSION_MAJOR)/g' \
|
||||||
-e 's/@@VERSION_MINOR@@/$(VERSION_MINOR)/g' \
|
-e 's/@@VERSION_MINOR@@/$(VERSION_MINOR)/g' \
|
||||||
$< >$@
|
$< >$@
|
||||||
|
chmod a-w $@
|
||||||
|
|
||||||
DISTDIR=libtermkey-$(VERSION)
|
DISTDIR=libtermkey-$(VERSION)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue