diff options
| author | Ray <raysan5@gmail.com> | 2016-04-06 17:12:03 +0200 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2016-04-06 17:12:03 +0200 |
| commit | 1a2a44200aea871739f0609abb353f40da08dab3 (patch) | |
| tree | 577d4991a1d7a1067f157c176242b3f1d7488dc7 /templates | |
| parent | 0133917bf93fd3efd9580db6ff31126c58bf38f4 (diff) | |
| parent | 93616157862ab9557c42494e23fc96d9d4de21d1 (diff) | |
| download | raylib-1a2a44200aea871739f0609abb353f40da08dab3.tar.gz raylib-1a2a44200aea871739f0609abb353f40da08dab3.zip | |
Merge pull request #108 from LelixSuper/develop
Fix Makefile files
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/advance_game/Makefile | 13 | ||||
| -rw-r--r-- | templates/basic_game/Makefile | 5 | ||||
| -rw-r--r-- | templates/basic_test/Makefile | 5 | ||||
| -rw-r--r-- | templates/simple_game/Makefile | 5 | ||||
| -rw-r--r-- | templates/standard_game/Makefile | 13 |
5 files changed, 28 insertions, 13 deletions
diff --git a/templates/advance_game/Makefile b/templates/advance_game/Makefile index 17b16c1a..ee982de4 100644 --- a/templates/advance_game/Makefile +++ b/templates/advance_game/Makefile @@ -23,6 +23,8 @@ # #************************************************************************************************** +.PHONY: all clean + # define raylib platform to compile for # possible platforms: PLATFORM_DESKTOP PLATFORM_RPI PLATFORM_WEB # WARNING: To compile to HTML5, code must be redesigned to use emscripten.h and emscripten_set_main_loop() @@ -202,21 +204,22 @@ clean: ifeq ($(PLATFORM),PLATFORM_DESKTOP) ifeq ($(PLATFORM_OS),OSX) find . -type f -perm +ugo+x -delete - rm -f *.o + rm -f screens/*.o else ifeq ($(PLATFORM_OS),LINUX) - find -type f -executable | xargs file -i | grep -E 'x-object|x-archive|x-sharedlib|x-executable' | rev | cut -d ':' -f 2- | rev | xargs rm -f + find . -type f -executable -delete + rm -f screens/*.o else - del *.o *.exe + del screens\*.o *.exe endif endif endif ifeq ($(PLATFORM),PLATFORM_RPI) find . -type f -executable -delete - rm -f *.o + rm -f screens/*.o endif ifeq ($(PLATFORM),PLATFORM_WEB) - del *.o *.html *.js + del screens/*.o *.html *.js endif @echo Cleaning done diff --git a/templates/basic_game/Makefile b/templates/basic_game/Makefile index f512a180..3b2a06d0 100644 --- a/templates/basic_game/Makefile +++ b/templates/basic_game/Makefile @@ -23,6 +23,8 @@ # #************************************************************************************************** +.PHONY: all clean + # define raylib platform to compile for # possible platforms: PLATFORM_DESKTOP PLATFORM_RPI PLATFORM_WEB # WARNING: To compile to HTML5, code must be redesigned to use emscripten.h and emscripten_set_main_loop() @@ -177,7 +179,8 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) rm -f *.o else ifeq ($(PLATFORM_OS),LINUX) - find -type f -executable | xargs file -i | grep -E 'x-object|x-archive|x-sharedlib|x-executable' | rev | cut -d ':' -f 2- | rev | xargs rm -f + find . -type f -executable -delete + rm -f *.o else del *.o *.exe endif diff --git a/templates/basic_test/Makefile b/templates/basic_test/Makefile index 95b8cd15..b08aacdf 100644 --- a/templates/basic_test/Makefile +++ b/templates/basic_test/Makefile @@ -23,6 +23,8 @@ # #************************************************************************************************** +.PHONY: all clean + # define raylib platform to compile for # possible platforms: PLATFORM_DESKTOP PLATFORM_RPI PLATFORM_WEB # WARNING: To compile to HTML5, code must be redesigned to use emscripten.h and emscripten_set_main_loop() @@ -176,7 +178,8 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) rm -f *.o else ifeq ($(PLATFORM_OS),LINUX) - find -type f -executable | xargs file -i | grep -E 'x-object|x-archive|x-sharedlib|x-executable' | rev | cut -d ':' -f 2- | rev | xargs rm -f + find . -type f -executable -delete + rm -f *.o else del *.o *.exe endif diff --git a/templates/simple_game/Makefile b/templates/simple_game/Makefile index de3401f7..6a3adcc8 100644 --- a/templates/simple_game/Makefile +++ b/templates/simple_game/Makefile @@ -23,6 +23,8 @@ # #************************************************************************************************** +.PHONY: all clean + # define raylib platform to compile for # possible platforms: PLATFORM_DESKTOP PLATFORM_RPI PLATFORM_WEB # WARNING: To compile to HTML5, code must be redesigned to use emscripten.h and emscripten_set_main_loop() @@ -181,7 +183,8 @@ ifeq ($(PLATFORM),PLATFORM_DESKTOP) rm -f *.o else ifeq ($(PLATFORM_OS),LINUX) - find -type f -executable | xargs file -i | grep -E 'x-object|x-archive|x-sharedlib|x-executable' | rev | cut -d ':' -f 2- | rev | xargs rm -f + find . -type f -executable -delete + rm -f screens/*.o else del *.o *.exe endif diff --git a/templates/standard_game/Makefile b/templates/standard_game/Makefile index c88c8211..4629d1b1 100644 --- a/templates/standard_game/Makefile +++ b/templates/standard_game/Makefile @@ -23,6 +23,8 @@ # #************************************************************************************************** +.PHONY: all clean + # define raylib platform to compile for # possible platforms: PLATFORM_DESKTOP PLATFORM_RPI PLATFORM_WEB # WARNING: To compile to HTML5, code must be redesigned to use emscripten.h and emscripten_set_main_loop() @@ -202,21 +204,22 @@ clean: ifeq ($(PLATFORM),PLATFORM_DESKTOP) ifeq ($(PLATFORM_OS),OSX) find . -type f -perm +ugo+x -delete - rm -f *.o + rm -f screens/*.o else ifeq ($(PLATFORM_OS),LINUX) - find -type f -executable | xargs file -i | grep -E 'x-object|x-archive|x-sharedlib|x-executable' | rev | cut -d ':' -f 2- | rev | xargs rm -f + find . -type f -executable -delete + rm -f screens/*.o else - del *.o *.exe + del screens\*.o *.exe endif endif endif ifeq ($(PLATFORM),PLATFORM_RPI) find . -type f -executable -delete - rm -f *.o + rm -f screens/*.o endif ifeq ($(PLATFORM),PLATFORM_WEB) - del *.o *.html *.js + del screens/*.o *.html *.js endif @echo Cleaning done |
