summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 6d59f4e..2329572 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,8 +3,10 @@ pkgconfig_DATA = pthread-stubs.pc
if BUILD_LIB
stubs.c: list.m4 stubs.c.m4
- m4 -P stubs.c.m4 > $@
+ m4 -P -I $(srcdir) stubs.c.m4 > $@
lib_LTLIBRARIES = libpthread-stubs.la
-libpthread_stubs_la_SOURCES = stubs.c
+nodist_libpthread_stubs_la_SOURCES = stubs.c
+CLEANFILES = stubs.c
endif
+EXTRA_libpthread_stubs_la_SOURCES = stubs.c.m4