Commit b3c5288c authored by Christer Ekholm's avatar Christer Ekholm

* Makefile: Added back the chmod 444 of version.el

Also chmod 444 some more generated files. The reason to write-protect
generated files is to make it harder to accidentally edit them by
mistake.
parent 610ae04a
2014-09-02 Christer Ekholm <che@chrekh.se>
* Makefile: Added back the chmod 444 of version.el, and also chmod
444 some more generated files. The reason to write-protect
generated files is to make it harder to accidentally edit them by
mistake.
2014-08-26 Christer Ekholm <che@chrekh.se>
* Makefile (version.el): Don't chmod 444 version.el. There is no
......
......@@ -143,22 +143,32 @@ EMACS-BATCH := $(EMACS) -batch
all: $(TARGET)
version.el: version.el.in Makefile $(HEADER1) $(HEADER2) $(LANGUAGE-EL) $(SOURCES)
rm -f $@
sed "s/@@CLIENTVERSION@@/$(CLIENTVERSION) (`date +%Y-%m-%d`; Git `git rev-parse --short HEAD``git diff --quiet HEAD||echo '*'`)/g" <$< >$@
chmod 444 $@
version.el-release: version.el.in Makefile $(HEADER1) $(HEADER2) $(LANGUAGE-EL) $(SOURCES)
rm -f $@
sed 's/@@CLIENTVERSION@@/$(CLIENTVERSION)/g' <$< >$@
chmod 444 $@
$(TARGET-EL) lyskom-all-$(CLIENTVERSION).el: \
$(HEADER1) $(VERSION-EL) $(HEADER2) $(LANGUAGE-EL) $(SOURCES)
rm -f $@
echo ";;;;; -*-coding: x-ctext;-*-" >$@
cat $^ >>$@
chmod 444 $@
%-help.el: help-%.xml
rm -f $@
$(EMACS) -batch -l help-compile.el $^ -f lyskom-help-compile-to-el
chmod 444 $@
lyskom-%-$(CLIENTVERSION).el: $(HEADER1) $(VERSION-EL) $(HEADER2) %-strings.el %-help.el $(SOURCES)
rm -f $@
echo ";;;;; -*-coding: x-ctext;-*-" >$@
cat $^ >>$@
chmod 444 $@
verbose: verbose-el $(TARGET)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment