Revision 1215c6e7 rules.mak

b/rules.mak
35 35

  
36 36
cc-option = $(if $(shell $(CC) $1 $2 -S -o /dev/null -xc /dev/null \
37 37
              >/dev/null 2>&1 && echo OK), $2, $3)
38

  
39
# Generate timestamp files for .h include files
40

  
41
%.h: %.h-timestamp
42
	@test -f $@ || cp $< $@
43

  
44
%.h-timestamp: %.mak
45
	$(call quiet-command, $(SRC_PATH)/create_config < $< > $@, "  GEN   $*.h")
46
	@cmp $@ $*.h >/dev/null 2>&1 || cp $@ $*.h

Also available in: Unified diff