]> err.no Git - varnish/commitdiff
Support out-of-tree builds, and make sure to clean up after ourselves. Both aka...
authortfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 6 Aug 2008 12:40:34 +0000 (12:40 +0000)
committertfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 6 Aug 2008 12:40:34 +0000 (12:40 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3067 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/Makefile.am

index 466f84570709bfa8fe1f93be8746adf0801a0399..5aa0ce652d08c861df48053ce8b4bc23aabece34 100644 (file)
@@ -79,11 +79,14 @@ varnishd_LDADD = \
        $(top_builddir)/lib/libvcl/libvcl.la \
        ${DL_LIBS} ${PTHREAD_LIBS} ${NET_LIBS} ${LIBM}
 
+EXTRA_DIST = default.vcl
+DISTCLEANFILES = default_vcl.h
+
 #
 # Turn the default.vcl file into a C-string we can include in the program.
 #
 default_vcl.h: default.vcl Makefile
-       sed -e 's/"/\\"/g' -e 's/$$/\\n"/' -e 's/^/     "/' default.vcl > $@
+       sed -e 's/"/\\"/g' -e 's/$$/\\n"/' -e 's/^/     "/' $(srcdir)/default.vcl > $@
 
 # Explicitly record dependency
 mgt_vcc.c:     default_vcl.h