diff options
author | Wolfgang Denk <wd@denx.de> | 2008-05-13 23:15:52 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-05-13 23:15:52 +0200 |
commit | 1510b82d50615f344e89d42533e8224cce067dc0 (patch) | |
tree | e6ccd31bbe4ea4c9201f054118eb3ce31e737d06 /Makefile | |
parent | 65dcfa79204f4750b905a173a5365e0b2eb6c2f6 (diff) | |
download | u-boot-imx-1510b82d50615f344e89d42533e8224cce067dc0.zip u-boot-imx-1510b82d50615f344e89d42533e8224cce067dc0.tar.gz u-boot-imx-1510b82d50615f344e89d42533e8224cce067dc0.tar.bz2 |
Makefile: fix "error: version_autogenerated.h: No such file or directory"
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -424,13 +424,19 @@ $(obj)System.map: $(obj)u-boot # This target actually generates 2 files; autoconf.mk and autoconf.mk.dep. # the dep file is only include in this top level makefile to determine when # to regenerate the autoconf.mk file. -$(obj)include/autoconf.mk: $(obj)include/config.h - @$(XECHO) Generating include/autoconf.mk ; \ +$(obj)include/autoconf.mk.dep: $(obj)include/config.h include/common.h + @$(XECHO) Generating $@ ; \ set -e ; \ : Generate the dependancies ; \ - $(CC) -x c -M $(HOST_CFLAGS) $(CPPFLAGS) -MQ $@ include/common.h > $@.dep ; \ + $(CC) -x c -DDO_DEPS_ONLY -M $(HOST_CFLAGS) $(CPPFLAGS) \ + -MQ $(obj)include/autoconf.mk include/common.h > $@ + +$(obj)include/autoconf.mk: $(obj)include/config.h + @$(XECHO) Generating $@ ; \ + set -e ; \ : Extract the config macros ; \ - $(CPP) $(CFLAGS) -dM include/common.h | sed -n -f tools/scripts/define2mk.sed > $@ + $(CPP) $(CFLAGS) -DDO_DEPS_ONLY -dM include/common.h | \ + sed -n -f tools/scripts/define2mk.sed > $@ sinclude $(obj)include/autoconf.mk.dep |