Fix example scripts build dependencies
authorIustin Pop <iustin@google.com>
Thu, 10 Apr 2008 12:59:25 +0000 (12:59 +0000)
committerIustin Pop <iustin@google.com>
Thu, 10 Apr 2008 12:59:25 +0000 (12:59 +0000)
Currently, the example scripts (the init.d and the cron script) do not
depend on the Makefile, so if configure is rerun with different
parameters these scripts are not rebuild.

The patch adds Makefile as a dependency so changes to installation paths
or other parameters trigger the rebuild.

Reviewed-by: imsnah

doc/examples/Makefile.am

index 427bad9..613857a 100644 (file)
@@ -4,7 +4,7 @@ CLEANFILES = $(nodist_EXTRA_DATA)
 nodist_EXTRA_DATA = ganeti.initd ganeti.cron
 
 all-local: ganeti.initd ganeti.cron
-ganeti.%: ganeti.%.in
+ganeti.%: ganeti.%.in Makefile
        sed \
          -e "s#@PREFIX@#$(prefix)#g" \
          -e "s#@SYSCONFDIR@#$(sysconfdir)#g" \