aboutsummaryrefslogtreecommitdiff
path: root/pkg-config/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'pkg-config/Makefile.am')
-rw-r--r--pkg-config/Makefile.am7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkg-config/Makefile.am b/pkg-config/Makefile.am
index 33e5642e2..d6ad76383 100644
--- a/pkg-config/Makefile.am
+++ b/pkg-config/Makefile.am
@@ -7,10 +7,13 @@ CLEANFILES = paludis.pc
built-sources : $(BUILT_SOURCES)
for s in $(SUBDIRS) ; do $(MAKE) -C $$s built-sources || exit 1 ; done
-distcheck-deps : $(DISTCHECK_DEPS) distcheck-deps-subdirs
+distcheck-deps-local : $(DISTCHECK_DEPS)
+
+distcheck-deps : distcheck-deps-subdirs
distcheck-deps-subdirs :
- for s in `echo $(SUBDIRS) | tr -d .` ; do $(MAKE) -C $$s distcheck-deps || exit 1 ; done
+ for s in $(SUBDIRS) . ; do if test x$$s = x. ; then make distcheck-deps-local || exit 1 ; \
+ else $(MAKE) -C $$s distcheck-deps || exit 1 ; fi ; done
paludis.pc : paludis.pc.in Makefile
sed \