freemyipod r665 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r664‎ | r665 | r666 >
Date:15:45, 25 March 2011
Author:theseven
Status:new
Tags:
Comment:
Fix even more buggy makefile logic
Modified paths:
  • /emcore/trunk/Makefile (modified) (history)
  • /libs/boot/Makefile (modified) (history)
  • /libs/mkfat32/Makefile (modified) (history)
  • /libs/png/Makefile (modified) (history)
  • /libs/ui/Makefile (modified) (history)
  • /tools/extract2g/Makefile (modified) (history)
  • /umsboot/Makefile (modified) (history)

Diff [purge]

Index: tools/extract2g/Makefile
@@ -1,12 +1,12 @@
22 CC= gcc
33 OPTS= -Wall -g
44
5 -ifeq ($(shell uname),WindowsNT)
6 -CCACHE :=
7 -else
8 -CCACHE := $(shell which ccache)
9 -endif
10 -
 5+ifeq ($(shell uname),WindowsNT)
 6+CCACHE :=
 7+else
 8+CCACHE := $(shell which ccache)
 9+endif
 10+
1111 all: extract2g
1212
1313 extract2g: extract2g.c extract2g.h
Index: umsboot/Makefile
@@ -86,17 +86,16 @@
8787
8888 $(foreach target,$(TARGETS),$(eval $(call TARGET_template,$(target))))
8989
90 -build/version.h: version.h .svn/entries build
 90+build/version.h: version.h .svn/entries
9191 @echo [PP] $<
9292 ifeq ($(shell uname),WindowsNT)
 93+ @-if not exist build md build
9394 @sed -e "s/\$$REVISION\$$/$(REVISION)/" -e "s/\$$REVISIONINT\$$/$(REVISIONINT)/" < $< > $@
9495 else
 96+ @-mkdir -p build
9597 @sed -e 's/\$$REVISION\$$/$(REVISION)/' -e 's/\$$REVISIONINT\$$/$(REVISIONINT)/' < $< > $@
9698 endif
9799
98 -build:
99 - @mkdir $@
100 -
101100 clean:
102101 @rm -rf build
103102
Index: libs/boot/Makefile
@@ -101,17 +101,16 @@
102102 endif
103103 @$(CC) -c $(CFLAGS) -o $@ $<
104104
105 -build/version.h: version.h .svn/entries build
 105+build/version.h: version.h .svn/entries
106106 @echo [PP] $<
107107 ifeq ($(shell uname),WindowsNT)
 108+ @-if not exist build md build
108109 @sed -e "s/\$$REVISION\$$/$(REVISION)/" -e "s/\$$REVISIONINT\$$/$(REVISIONINT)/" < $< > $@
109110 else
 111+ @-mkdir -p build
110112 @sed -e 's/\$$REVISION\$$/$(REVISION)/' -e 's/\$$REVISIONINT\$$/$(REVISIONINT)/' < $< > $@
111113 endif
112114
113 -build:
114 - @mkdir $@
115 -
116115 clean:
117116 rm -rf build
118117
Index: libs/png/Makefile
@@ -101,17 +101,16 @@
102102 endif
103103 @$(CC) -c $(CFLAGS) -o $@ $<
104104
105 -build/version.h: version.h .svn/entries build
 105+build/version.h: version.h .svn/entries
106106 @echo [PP] $<
107107 ifeq ($(shell uname),WindowsNT)
 108+ @-if not exist build md build
108109 @sed -e "s/\$$REVISION\$$/$(REVISION)/" -e "s/\$$REVISIONINT\$$/$(REVISIONINT)/" < $< > $@
109110 else
 111+ @-mkdir -p build
110112 @sed -e 's/\$$REVISION\$$/$(REVISION)/' -e 's/\$$REVISIONINT\$$/$(REVISIONINT)/' < $< > $@
111113 endif
112114
113 -build:
114 - @mkdir $@
115 -
116115 clean:
117116 rm -rf build
118117
Index: libs/mkfat32/Makefile
@@ -101,17 +101,16 @@
102102 endif
103103 @$(CC) -c $(CFLAGS) -o $@ $<
104104
105 -build/version.h: version.h .svn/entries build
 105+build/version.h: version.h .svn/entries
106106 @echo [PP] $<
107107 ifeq ($(shell uname),WindowsNT)
 108+ @-if not exist build md build
108109 @sed -e "s/\$$REVISION\$$/$(REVISION)/" -e "s/\$$REVISIONINT\$$/$(REVISIONINT)/" < $< > $@
109110 else
 111+ @-mkdir -p build
110112 @sed -e 's/\$$REVISION\$$/$(REVISION)/' -e 's/\$$REVISIONINT\$$/$(REVISIONINT)/' < $< > $@
111113 endif
112114
113 -build:
114 - @mkdir $@
115 -
116115 clean:
117116 rm -rf build
118117
Index: libs/ui/Makefile
@@ -101,17 +101,16 @@
102102 endif
103103 @$(CC) -c $(CFLAGS) -o $@ $<
104104
105 -build/version.h: version.h .svn/entries build
 105+build/version.h: version.h .svn/entries
106106 @echo [PP] $<
107107 ifeq ($(shell uname),WindowsNT)
 108+ @-if not exist build md build
108109 @sed -e "s/\$$REVISION\$$/$(REVISION)/" -e "s/\$$REVISIONINT\$$/$(REVISIONINT)/" < $< > $@
109110 else
 111+ @-mkdir -p build
110112 @sed -e 's/\$$REVISION\$$/$(REVISION)/' -e 's/\$$REVISIONINT\$$/$(REVISIONINT)/' < $< > $@
111113 endif
112114
113 -build:
114 - @mkdir $@
115 -
116115 clean:
117116 rm -rf build
118117
Index: emcore/trunk/Makefile
@@ -86,17 +86,16 @@
8787
8888 $(foreach target,$(TARGETS),$(eval $(call TARGET_template,$(target))))
8989
90 -build/version.h: version.h .svn/entries build
 90+build/version.h: version.h .svn/entries
9191 @echo [PP] $<
9292 ifeq ($(shell uname),WindowsNT)
 93+ @-if not exist build md build
9394 @sed -e "s/\$$REVISION\$$/$(REVISION)/" -e "s/\$$REVISIONINT\$$/$(REVISIONINT)/" < $< > $@
9495 else
 96+ @-mkdir -p build
9597 @sed -e 's/\$$REVISION\$$/$(REVISION)/' -e 's/\$$REVISIONINT\$$/$(REVISIONINT)/' < $< > $@
9698 endif
9799
98 -build:
99 - @mkdir $@
100 -
101100 clean:
102101 @rm -rf build
103102