# Han-Wen Nienhuys <hanwen@stack.nl>
#
+# the wild-perl script needs this.
+real_topdir = $(top_srcdir)/..
+
# bin_PROGRAMS = test
# TEST = test
INCLUDES = -I../include
$(srcdir)/Makefile.am: $(srcdir)/Makefile.am.wild
- $(PERL) $(top_srcdir)/bin/wild-perl < $< > $@
\ No newline at end of file
+ $(PERL) $(top_srcdir)/bin/wild-perl --top-srcdir="$(real_topdir)" < $< > $@
\ No newline at end of file