X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=build%2FMakefile;h=15bafe723ae0f65f66c1e4c46051f5d3f4cc14be;hb=e34560a76a7af3fb428604e4da3cd14cfd1bf454;hp=151fd0117774744a46508f39e7cc40178065357f;hpb=2f826523b9ec5003c4ba696ce78df01b46e9a59d;p=libucw.git diff --git a/build/Makefile b/build/Makefile index 151fd011..15bafe72 100644 --- a/build/Makefile +++ b/build/Makefile @@ -2,6 +2,11 @@ DIRS+=build -obj/build/genhash: obj/build/genhash.o +$(o)/build/genhash: $(o)/build/genhash.o -.SECONDARY: obj/build/genhash obj/build/genhash.o +# This is a hack which compensates make's desires for propagating per-rule settings +# of variables: if some module specifies its own LIBS and it depends on genhash, +# genhash is sometimes built with the module's LIBS (if it isn't already built). +# A proper solution would be using a different rule for linking build/*, but +# as it currently concerns only genhash, it's easier to battle this way. +$(o)/build/genhash: LIBS=