Rev 589 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 589 | Rev 621 | ||
|---|---|---|---|
| Line 208... | Line 208... | ||
| 208 | 208 | ||
| 209 | # Generate config.h from bios.inc and config.inc |
209 | # Generate config.h from bios.inc and config.inc |
| 210 | config.h: $(CFGDIR)/bios.inc $(CFGDIR)/config.inc |
210 | config.h: $(CFGDIR)/bios.inc $(CFGDIR)/config.inc |
| 211 | @echo Generating $@ |
211 | @echo Generating $@ |
| 212 | @echo "/* This file is automatically generated. Do not edit. */" > $@ |
212 | @echo "/* This file is automatically generated. Do not edit. */" > $@ |
| - | 213 | @echo "" >> $@ |
|
| 213 | @cat $^ | $(AWK) 'BEGIN { FS="="; print "#ifndef CONFIG_H_\n#define CONFIG_H_\n" } /^[^#].*=.*/ { print "#define "$$1,$$2 } END { print "\n#endif /*CONFIG_H_*/" }' >> $@ |
214 | @cat $^ | $(AWK) 'BEGIN { FS="="; print "#ifndef CONFIG_H_\n#define CONFIG_H_\n" } /^[^#].*=.*/ { print "#define "$$1,$$2 } END { print "\n#endif /*CONFIG_H_*/" }' >> $@ |
| 214 | 215 | ||
| 215 | $(CFGDIR)/config.inc: $(SRCDIR)/config.inc.template |
216 | $(CFGDIR)/config.inc: $(SRCDIR)/config.inc.template |
| 216 | @if [ ! -f $@ ]; then cp $< $@; fi |
217 | @if [ ! -f $@ ]; then cp $< $@; fi |
| 217 | 218 | ||