Skip to content
Snippets Groups Projects
Commit dbefcc7e authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Makefile.am: Move stamp-directories to BUILT_SOURCES


Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent 705dd60e
No related branches found
No related tags found
No related merge requests found
...@@ -73,6 +73,7 @@ CLEANFILES = \ ...@@ -73,6 +73,7 @@ CLEANFILES = \
BUILT_SOURCES = \ BUILT_SOURCES = \
ganeti \ ganeti \
srclinks \ srclinks \
stamp-directories \
lib/_autoconf.py lib/_autoconf.py
nodist_pkgpython_PYTHON = \ nodist_pkgpython_PYTHON = \
...@@ -308,25 +309,25 @@ srclink_files = \ ...@@ -308,25 +309,25 @@ srclink_files = \
check_python_code = \ check_python_code = \
$(all_python_code) $(all_python_code)
all-local: stamp-directories devel/upload \ all-local: devel/upload \
doc/examples/bash_completion \ doc/examples/bash_completion \
doc/examples/ganeti.initd doc/examples/ganeti.cron \ doc/examples/ganeti.initd doc/examples/ganeti.cron \
doc/examples/hooks/ipsec doc/examples/hooks/ipsec
devel/upload: devel/upload.in stamp-directories $(REPLACE_VARS_SED) devel/upload: devel/upload.in $(REPLACE_VARS_SED)
sed -f $(REPLACE_VARS_SED) < $< > $@ sed -f $(REPLACE_VARS_SED) < $< > $@
chmod u+x $@ chmod u+x $@
daemons/ganeti-cleaner: daemons/ganeti-cleaner.in stamp-directories \ daemons/ganeti-cleaner: daemons/ganeti-cleaner.in \
$(REPLACE_VARS_SED) $(REPLACE_VARS_SED)
sed -f $(REPLACE_VARS_SED) < $< > $@ sed -f $(REPLACE_VARS_SED) < $< > $@
chmod +x $@ chmod +x $@
doc/examples/%: doc/examples/%.in stamp-directories \ doc/examples/%: doc/examples/%.in \
$(REPLACE_VARS_SED) $(REPLACE_VARS_SED)
sed -f $(REPLACE_VARS_SED) < $< > $@ sed -f $(REPLACE_VARS_SED) < $< > $@
doc/examples/hooks/%: doc/examples/hooks/%.in stamp-directories \ doc/examples/hooks/%: doc/examples/hooks/%.in \
$(REPLACE_VARS_SED) $(REPLACE_VARS_SED)
sed -f $(REPLACE_VARS_SED) < $< > $@ sed -f $(REPLACE_VARS_SED) < $< > $@
...@@ -346,13 +347,13 @@ man/%.html.in: man/%.sgml man/footer.sgml $(DOCBOOK_WRAPPER) ...@@ -346,13 +347,13 @@ man/%.html.in: man/%.sgml man/footer.sgml $(DOCBOOK_WRAPPER)
@test -n "$(DOCBOOK2HTML)" || { echo 'docbook2html' not found during configure; exit 1; } @test -n "$(DOCBOOK2HTML)" || { echo 'docbook2html' not found during configure; exit 1; }
$(DOCBOOK_WRAPPER) "$(DOCBOOK2HTML) --nochunks" $< $(notdir $(@:.in=)) $@ $(DOCBOOK_WRAPPER) "$(DOCBOOK2HTML) --nochunks" $< $(notdir $(@:.in=)) $@
man/%.7: man/%.7.in stamp-directories $(REPLACE_VARS_SED) man/%.7: man/%.7.in $(REPLACE_VARS_SED)
sed -f $(REPLACE_VARS_SED) < $< > $@ sed -f $(REPLACE_VARS_SED) < $< > $@
man/%.8: man/%.8.in stamp-directories $(REPLACE_VARS_SED) man/%.8: man/%.8.in $(REPLACE_VARS_SED)
sed -f $(REPLACE_VARS_SED) < $< > $@ sed -f $(REPLACE_VARS_SED) < $< > $@
man/%.html: man/%.html.in stamp-directories $(REPLACE_VARS_SED) man/%.html: man/%.html.in $(REPLACE_VARS_SED)
sed -f $(REPLACE_VARS_SED) < $< > $@ sed -f $(REPLACE_VARS_SED) < $< > $@
lib/_autoconf.py: Makefile stamp-directories lib/_autoconf.py: Makefile stamp-directories
...@@ -392,7 +393,7 @@ lib/_autoconf.py: Makefile stamp-directories ...@@ -392,7 +393,7 @@ lib/_autoconf.py: Makefile stamp-directories
echo "GNT_SCRIPTS = [$(foreach i,$(notdir $(gnt_scripts)),'$(i)',)]"; \ echo "GNT_SCRIPTS = [$(foreach i,$(notdir $(gnt_scripts)),'$(i)',)]"; \
} > $@ } > $@
$(REPLACE_VARS_SED): Makefile stamp-directories $(REPLACE_VARS_SED): Makefile
set -e; \ set -e; \
{ echo 's#@PREFIX@#$(prefix)#g'; \ { echo 's#@PREFIX@#$(prefix)#g'; \
echo 's#@SYSCONFDIR@#$(sysconfdir)#g'; \ echo 's#@SYSCONFDIR@#$(sysconfdir)#g'; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment