diff options
author | Richard Levitte <levitte@openssl.org> | 2015-05-22 17:54:06 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2015-05-22 18:44:33 +0200 |
commit | 0f539dc1a2f45580435c39dada44dd276e79cb88 (patch) | |
tree | bb72d0787997435b7151733f0db43f2c729742fc /engines/ccgost/Makefile | |
parent | Ignore files from other branches (diff) | |
download | openssl-0f539dc1a2f45580435c39dada44dd276e79cb88.tar.xz openssl-0f539dc1a2f45580435c39dada44dd276e79cb88.zip |
Fix the update target and remove duplicate file updates
We had updates of certain header files in both Makefile.org and the
Makefile in the directory the header file lived in. This is error
prone and also sometimes generates slightly different results (usually
just a comment that differs) depending on which way the update was
done.
This removes the file update targets from the top level Makefile, adds
an update: target in all Makefiles and has it depend on the depend: or
local_depend: targets, whichever is appropriate, so we don't get a
double run through the whole file tree.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'engines/ccgost/Makefile')
-rw-r--r-- | engines/ccgost/Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/engines/ccgost/Makefile b/engines/ccgost/Makefile index 1ce18485f0..f3378aa98d 100644 --- a/engines/ccgost/Makefile +++ b/engines/ccgost/Makefile @@ -63,12 +63,13 @@ install: tests: -depend: - @if [ -z "$(THIS)" ]; then \ - $(MAKE) -f $(TOP)/Makefile reflect THIS=$@; \ - else \ - $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC); \ - fi +update: local_depend + @[ -z "$(THIS)" ] && $(MAKE) -f $(TOP)/Makefile reflect THIS=$@ + +depend: local_depend + @[ -z "$(THIS)" ] && $(MAKE) -f $(TOP)/Makefile reflect THIS=$@ +local_depend: + @[ -z "$(THIS)" ] || $(MAKEDEPEND) -- $(CFLAG) $(INCLUDES) $(DEPFLAG) -- $(PROGS) $(LIBSRC) files: $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO |