https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
13 lines
291 B
Diff
13 lines
291 B
Diff
--- a/Makefile.in
|
|
+++ b/Makefile.in
|
|
@@ -296,7 +296,9 @@ LIB_OBJECT = @LIB_OBJECT@
|
|
|
|
all sources :: $(AUTO_SRC)
|
|
|
|
-$(OBJECTS) : include/cdk_config.h
|
|
+# make sure we generate all headers before trying
|
|
+# to build first source file.
|
|
+$(OBJECTS) : $(MY_HDR)
|
|
|
|
#
|
|
# Standard library directive.
|