bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] cdk/Makefile.in: add missing generated headers dependencies


From: Sergei Trofimovich
Subject: [PATCH] cdk/Makefile.in: add missing generated headers dependencies
Date: Fri, 10 Dec 2021 00:14:08 +0000

Fixes the follow build failure on make -j16:

    build flags: -j16 -l16 SHELL=/bin/bash
    bash ./gen-scale.sh DSCALE DScale Double double ./include/gen-scale.h 
>include/dscale.h
    bash ./gen-scale.sh FSCALE FScale Float float ./include/gen-scale.h 
>include/fscale.h
    bash ./gen-scale.sh FSLIDER FSlider Float float ./include/gen-slider.h 
>include/fslider.h
    bash ./gen-scale.sh SCALE Scale Int int ./include/gen-scale.h 
>include/scale.h
    gcc -g -O2  -DHAVE_CONFIG_H -I./include -I./include -D_DEFAULT_SOURCE 
-D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -c cdkscreen.c
    gcc -g -O2  -DHAVE_CONFIG_H -I./include -I./include -D_DEFAULT_SOURCE 
-D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -c debug.c
    In file included from ./include/cdk_int.h:13,
                     from cdkscreen.c:1:
    ./include/cdk.h:321:10: fatal error: uscale.h: No such file or directory
      321 | #include <uscale.h>
          |          ^~~~~~~~~~
---
 Makefile.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Makefile.in b/Makefile.in
index f821a6d..9bab667 100644
--- 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.
-- 
2.33.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]