diff options
Diffstat (limited to 'config/depend1.in')
-rw-r--r-- | config/depend1.in | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/config/depend1.in b/config/depend1.in index 4a24846..e07f4bf 100644 --- a/config/depend1.in +++ b/config/depend1.in @@ -20,18 +20,16 @@ ## otherwise the file is changed and a backup is saved by appending a ## tilde to the file name. ## -.PRECIOUS: Dependencies -Dependencies: .depend +$(srcdir)/Dependencies: .depend @if test "$(srcdir)" != "."; then \ - echo '## This file is machine generated on GNU systems.' \ - >$@; \ - echo '## Only temporary changes may be made here.' \ - >>$@; \ - echo >>$@; \ + echo '## This file is machine generated on GNU systems.' >$@; \ + echo '## Only temporary changes may be made here.' >>$@; \ + echo >>$@; \ perl -p $(top_srcdir)/bin/distdep .depend >>$@; \ + else \ + echo 'Dependencies cannot be built when $$srcdir == $$builddir'; \ fi -.PRECIOUS: .depend .depend: $(LIB_SRC) $(TEST_SRC) $(PROG_SRC) @touch .depend @for dep in $? dummy; do \ @@ -47,14 +45,6 @@ Dependencies: .depend sed 's/\.o/.lo/' >>$@; \ fi; \ done; - @if test "$(srcdir)" != "."; then \ - echo '## This file is machine generated on GNU systems.' \ - >Dependencies; \ - echo '## Only temporary changes may be made here.' \ - >>Dependencies; \ - echo >>Dependencies; \ - perl -p $(top_srcdir)/bin/distdep .depend>>Dependencies;\ - fi -include .depend |