Message ID | pull.1205.git.1649198136190.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | f2a2876f5a4a9c5250d8f64bd468677d506a956a |
Headers | show |
Series | contrib/scalar: fix 'all' target in Makefile | expand |
On Tue, Apr 05 2022, Victoria Dye via GitGitGadget wrote: > From: Victoria Dye <vdye@github.com> > > Add extra ':' to second 'all' target definition to allow 'scalar' to build. > Without this fix, the 'all:' and 'all::' targets together cause a build > failure when 'scalar' build is enabled with 'INCLUDE_SCALAR': > > Makefile:14: *** target file `all' has both : and :: entries. Stop. Thanks for the fix, and sorry. I missed this because I build and install scalar locally with a patch on top[1] to integrate it into the main Makefile, so I wasn't running this part, even if I was building, testing and installing it as part of my local build. 1. https://lore.kernel.org/git/patch-1.1-86fb8d56307-20211028T185016Z-avarab@gmail.com/
diff --git a/contrib/scalar/Makefile b/contrib/scalar/Makefile index 5e86d78e19b..37f283f35d7 100644 --- a/contrib/scalar/Makefile +++ b/contrib/scalar/Makefile @@ -11,7 +11,7 @@ include ../../config.mak.uname TARGETS = scalar$(X) scalar.o GITLIBS = ../../common-main.o ../../libgit.a ../../xdiff/lib.a -all: scalar$(X) ../../bin-wrappers/scalar +all:: scalar$(X) ../../bin-wrappers/scalar $(GITLIBS): $(QUIET_SUBDIR0)../.. $(QUIET_SUBDIR1) $(subst ../../,,$@)