Subversion Repositories HomeAutomation

Rev

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

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