mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-05 03:04:16 +01:00
38 lines
655 B
Makefile
38 lines
655 B
Makefile
ifeq ($(OS),Windows_NT)
|
|
WUT_ROOT := $(shell cygpath -w ${CURDIR})
|
|
else
|
|
WUT_ROOT := $(CURDIR)
|
|
endif
|
|
|
|
TARGETS := crt rpl tools
|
|
|
|
export WUT_ROOT
|
|
|
|
all:
|
|
@for dir in $(TARGETS); do \
|
|
echo; \
|
|
echo "Entering Directory $$dir"; \
|
|
$(MAKE) --no-print-directory -C $$dir; \
|
|
echo "Leaving Directory $$dir"; \
|
|
done
|
|
|
|
clean:
|
|
@rm -rf lib
|
|
@rm -rf bin
|
|
@for dir in $(TARGETS); do \
|
|
echo; \
|
|
echo Cleaning $$dir; \
|
|
$(MAKE) --no-print-directory -C $$dir clean; \
|
|
done
|
|
|
|
install:
|
|
@mkdir -p bin
|
|
@mkdir -p lib
|
|
@for dir in $(TARGETS); do \
|
|
echo; \
|
|
echo Installing $$dir; \
|
|
$(MAKE) --no-print-directory -C $$dir install; \
|
|
done
|
|
|
|
.PHONY: all clean install
|