freemyipod r664 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r663‎ | r664 | r665 >
Date:15:36, 25 March 2011
Author:theseven
Status:new
Tags:
Comment:
Fix some buggy emCORE loader makefile logic
Modified paths:
  • /emcore/trunk/loader/ipodclassic/Makefile (modified) (history)
  • /emcore/trunk/loader/ipodnano2g/Makefile (modified) (history)

Diff [purge]

Index: emcore/trunk/loader/ipodnano2g/Makefile
@@ -90,17 +90,16 @@
9191 endif
9292 @$(CC) -c $(CFLAGS) -o $@ $<
9393
94 -build/version.h: version.h .svn/entries build
 94+build/version.h: version.h .svn/entries
9595 @echo [PP] $<
9696 ifeq ($(shell uname),WindowsNT)
 97+ @-if not exist build md build
9798 @sed -e "s/\$$REVISION\$$/$(REVISION)/" -e "s/\$$REVISIONINT\$$/$(REVISIONINT)/" < $< > $@
9899 else
 100+ @-mkdir -p build
99101 @sed -e 's/\$$REVISION\$$/$(REVISION)/' -e 's/\$$REVISIONINT\$$/$(REVISIONINT)/' < $< > $@
100102 endif
101103
102 -build:
103 - @mkdir $@
104 -
105104 clean:
106105 @rm -rf build
107106
Index: emcore/trunk/loader/ipodclassic/Makefile
@@ -85,17 +85,16 @@
8686 endif
8787 @$(CC) -c $(CFLAGS) -o $@ $<
8888
89 -build/version.h: version.h .svn/entries build
 89+build/version.h: version.h .svn/entries
9090 @echo [PP] $<
9191 ifeq ($(shell uname),WindowsNT)
 92+ @-if not exist build md build
9293 @sed -e "s/\$$REVISION\$$/$(REVISION)/" -e "s/\$$REVISIONINT\$$/$(REVISIONINT)/" < $< > $@
9394 else
 95+ @-mkdir -p build
9496 @sed -e 's/\$$REVISION\$$/$(REVISION)/' -e 's/\$$REVISIONINT\$$/$(REVISIONINT)/' < $< > $@
9597 endif
9698
97 -build:
98 - @mkdir $@
99 -
10099 clean:
101100 @rm -rf build
102101