aboutsummaryrefslogtreecommitdiffstats
path: root/Configurations/unix-Makefile.tmpl
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2018-03-13 17:56:20 +0100
committerRichard Levitte <levitte@openssl.org>2018-03-13 19:24:26 +0100
commit249b4e28a6c91074f2fe276a2b2b40eb6f9639a9 (patch)
treedd251c63fd0e390f45c635fd2163b1f21a8eaf93 /Configurations/unix-Makefile.tmpl
parent3b855b1f892bb26aca760b331afe506527fe369c (diff)
downloadopenssl-249b4e28a6c91074f2fe276a2b2b40eb6f9639a9.tar.gz
Refactor the 'depend' target
With the help of the perl script util/add-depends.pl, which takes all its information directly from configdata.pm, the dependency adding procedure can be streamlined for all support platforms. Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5606)
Diffstat (limited to 'Configurations/unix-Makefile.tmpl')
-rw-r--r--Configurations/unix-Makefile.tmpl14
1 files changed, 1 insertions, 13 deletions
diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl
index dd55b8474a..0be8cb15a5 100644
--- a/Configurations/unix-Makefile.tmpl
+++ b/Configurations/unix-Makefile.tmpl
@@ -419,19 +419,7 @@ distclean: clean
# concatenate only if that is true.
depend:
@: {- output_off() if $disabled{makedepend}; "" -}
- @if egrep "^# DO NOT DELETE THIS LINE" Makefile >/dev/null && [ -z "`find $(DEPS) -newer Makefile 2>/dev/null; exit 0`" ]; then :; else \
- ( $(PERL) -pe 'exit 0 if /^# DO NOT DELETE THIS LINE.*/' < Makefile; \
- echo '# DO NOT DELETE THIS LINE -- make depend depends on it.'; \
- echo; \
- for f in $(DEPS); do \
- if [ -f $$f ]; then cat $$f; fi; \
- done ) > Makefile.new; \
- if cmp Makefile.new Makefile >/dev/null 2>&1; then \
- rm -f Makefile.new; \
- else \
- mv -f Makefile.new Makefile; \
- fi; \
- fi
+ @$(PERL) $(SRCDIR)/util/add-depends.pl
@: {- output_on() if $disabled{makedepend}; "" -}
# Install helper targets #############################################