mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 06:05:44 +01:00
fix: don't use UNIX sh based ifs, instead opt for GNU Make.
This is more portable acorss machines
This commit is contained in:
13
Makefile
13
Makefile
@@ -49,11 +49,16 @@ all: bin/$(NAME)
|
|||||||
libs: lib/obj/glfw/ lib/obj/libarchive/
|
libs: lib/obj/glfw/ lib/obj/libarchive/
|
||||||
test: bin/TEST_$(NAME); bin/TEST_$(NAME)
|
test: bin/TEST_$(NAME); bin/TEST_$(NAME)
|
||||||
clean:
|
clean:
|
||||||
@[ -d bin/ ] && rm -vr bin/ || true
|
ifneq ($(wildcard bin/),)
|
||||||
@[ -d obj/ ] && rm -vr obj/ || true
|
rm -vr bin/
|
||||||
|
endif
|
||||||
|
ifneq ($(wildcard obj/),)
|
||||||
|
rm -vr obj/
|
||||||
|
endif
|
||||||
clean-libs:
|
clean-libs:
|
||||||
@[ -d lib/obj/ ] && rm -vr lib/obj/ || true
|
ifneq ($(wildcard lib/obj/),)
|
||||||
|
rm -vr lib/obj/
|
||||||
|
endif
|
||||||
|
|
||||||
# compiles the libraries using cmake
|
# compiles the libraries using cmake
|
||||||
lib/obj/%/: lib/%/
|
lib/obj/%/: lib/%/
|
||||||
|
|||||||
Reference in New Issue
Block a user