Subversion Repositories HomeAutomation

Rev

Rev 563 | Rev 790 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 563 Rev 621
Line 213... Line 213...
213
	@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); echo; fi
213
	@if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER); $(ELFSIZE); echo; fi
214
 
214
 
215
# Generate config.h from bios.inc and config.inc
215
# Generate config.h from bios.inc and config.inc
216
config.h: $(CFGDIR)/bios.inc $(CFGDIR)/config.inc
216
config.h: $(CFGDIR)/bios.inc $(CFGDIR)/config.inc
217
	@echo Generating $@
217
	@echo Generating $@
218
	@echo "/* This file is automatically generated. Do not edit. */\n" > $@
218
	@echo "/* This file is automatically generated. Do not edit. */" > $@
-
 
219
	@echo "" >> $@
219
	@cat $^ | $(AWK) 'BEGIN { FS="="; print "#ifndef CONFIG_H_\n#define CONFIG_H_\n" } /^[^#].*=.*/ { print "#define "$$1,$$2 } END { print "\n#endif /*CONFIG_H_*/" }' >> $@
220
	@cat $^ | $(AWK) 'BEGIN { FS="="; print "#ifndef CONFIG_H_\n#define CONFIG_H_\n" } /^[^#].*=.*/ { print "#define "$$1,$$2 } END { print "\n#endif /*CONFIG_H_*/" }' >> $@
220
 
221
 
221
$(CFGDIR)/config.inc: $(SRCDIR)/config.inc.template
222
$(CFGDIR)/config.inc: $(SRCDIR)/config.inc.template
222
	@if [ ! -f $@ ]; then cp $< $@; fi
223
	@if [ ! -f $@ ]; then cp $< $@; fi
223
 
224