summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/depend1.in26
1 files changed, 16 insertions, 10 deletions
diff --git a/config/depend1.in b/config/depend1.in
index ee51733..2988249 100644
--- a/config/depend1.in
+++ b/config/depend1.in
@@ -22,10 +22,14 @@
##
.PRECIOUS: $(srcdir)/Dependencies
$(srcdir)/Dependencies: .depend
- -@echo '## This file is machine generated on GNU systems.' >$@
- -@echo '## Only temporary changes may be made here.' >>@
- -@echo >>@
- -srcdir=$(srcdir) perl -p $(top_srcdir)/bin/distdep .depend >>$@
+ @if test "$(srcdir)" != "."; then \
+ echo '## This file is machine generated on GNU systems.' \
+ >$@; \
+ echo '## Only temporary changes may be made here.' \
+ >>$@; \
+ echo >>$(srcdir)/Dependencies; \
+ perl -p $(top_srcdir)/bin/distdep .depend >>$@; \
+ fi
.PRECIOUS: .depend
.depend: $(LIB_SRC) $(TEST_SRC) $(PROG_SRC)
@@ -43,12 +47,14 @@ $(srcdir)/Dependencies: .depend
sed 's/\.o/.lo/' >>$@; \
fi; \
done;
- -@echo '## This file is machine generated on GNU systems.' \
- >$(srcdir)/Dependencies
- -@echo '## Only temporary changes may be made here.' \
- >>$(srcdir)/Dependencies
- -@echo >>$(srcdir)/Dependencies
- -perl -p $(top_srcdir)/bin/distdep .depend >>$(srcdir)/Dependencies
+ @if test "$(srcdir)" != "."; then \
+ echo '## This file is machine generated on GNU systems.' \
+ >$(srcdir)/Dependencies; \
+ echo '## Only temporary changes may be made here.' \
+ >>$(srcdir)/Dependencies; \
+ echo >>$(srcdir)/Dependencies; \
+ perl -p $(top_srcdir)/bin/distdep .depend>>$(srcdir)/Dependencies;\
+ fi
-include .depend