freemyipod r9 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r8‎ | r9 | r10 >
Date:22:13, 29 July 2010
Author:theseven
Status:new
Tags:
Comment:
Fix dependency generation for me
Modified paths:
  • /embios/trunk/Makefile (modified) (history)

Diff [purge]

Index: embios/trunk/Makefile
@@ -38,10 +38,9 @@
3939 @-mkdir -p $$(dir $$@)
4040 endif
4141 $(CC) -c $(CFLAGS) -Itarget/$(1) -DTARGET_$(1) -o $$@ $$<
42 - @$(CC) -MM $(CFLAGS) -Itarget/$(1) -DTARGET_$(1) $$< > $$@.dep
43 - @mv -f $$@.dep $$@.dep.tmp
 42+ @$(CC) -MM $(CFLAGS) -Itarget/$(1) -DTARGET_$(1) $$< > $$@.dep.tmp
4443 @sed -e "s|.*:|$$@:|" < $$@.dep.tmp > $$@.dep
45 - @sed -e "s/.*://" -e "s/\\\\\\\\$$$$//" < $$@.dep.tmp | fmt -1 | sed -e "s/^ *//" -e "s/$$$$/:/" >> $$@.dep
 44+ sed -e "s/.*://" -e "s/\\$$$$//" < $$@.dep.tmp | fmt -1 | sed -e "s/^ *//" -e "s/$$$$/:/" >> $$@.dep
4645 @rm -f $$@.dep.tmp
4746
4847 build/$(1)/%.o: %.S
@@ -51,10 +50,9 @@
5251 @-mkdir -p $$(dir $$@)
5352 endif
5453 $(CC) -c $(CFLAGS) -Itarget/$(1) -DTARGET_$(1) -o $$@ $$<
55 - @$(CC) -MM $(CFLAGS) -Itarget/$(1) -DTARGET_$(1) $$< > $$@.dep
56 - @mv -f $$@.dep $$@.dep.tmp
 54+ @$(CC) -MM $(CFLAGS) -Itarget/$(1) -DTARGET_$(1) $$< > $$@.dep.tmp
5755 @sed -e "s|.*:|$$@:|" < $$@.dep.tmp > $$@.dep
58 - @sed -e "s/.*://" -e "s/\\\\\\\\$$$$//" < $$@.dep.tmp | fmt -1 | sed -e "s/^ *//" -e "s/$$$$/:/" >> $$@.dep
 56+ sed -e "s/.*://" -e "s/\\$$$$//" < $$@.dep.tmp | fmt -1 | sed -e "s/^ *//" -e "s/$$$$/:/" >> $$@.dep
5957 @rm -f $$@.dep.tmp
6058 endef
6159