diff options
| author | LelixSuper <emanuele98@openmailbox.org> | 2016-04-06 13:21:29 +0200 |
|---|---|---|
| committer | LelixSuper <emanuele98@openmailbox.org> | 2016-04-06 13:21:29 +0200 |
| commit | 93616157862ab9557c42494e23fc96d9d4de21d1 (patch) | |
| tree | 577d4991a1d7a1067f157c176242b3f1d7488dc7 /templates/basic_test | |
| parent | 0133917bf93fd3efd9580db6ff31126c58bf38f4 (diff) | |
| download | raylib-93616157862ab9557c42494e23fc96d9d4de21d1.tar.gz raylib-93616157862ab9557c42494e23fc96d9d4de21d1.zip | |
Fix Makefile files
I've added .PHONY targets and fixed "clean" recipe.
Diffstat (limited to 'templates/basic_test')
| -rw-r--r-- | templates/basic_test/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
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 |
