mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-17 07:35:45 +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/
|
||||
test: bin/TEST_$(NAME); bin/TEST_$(NAME)
|
||||
clean:
|
||||
@[ -d bin/ ] && rm -vr bin/ || true
|
||||
@[ -d obj/ ] && rm -vr obj/ || true
|
||||
ifneq ($(wildcard bin/),)
|
||||
rm -vr bin/
|
||||
endif
|
||||
ifneq ($(wildcard obj/),)
|
||||
rm -vr obj/
|
||||
endif
|
||||
clean-libs:
|
||||
@[ -d lib/obj/ ] && rm -vr lib/obj/ || true
|
||||
|
||||
ifneq ($(wildcard lib/obj/),)
|
||||
rm -vr lib/obj/
|
||||
endif
|
||||
|
||||
# compiles the libraries using cmake
|
||||
lib/obj/%/: lib/%/
|
||||
|
||||
Reference in New Issue
Block a user