Subversion Repositories HomeAutomation

Rev

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

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