mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-05 03:24:17 +01:00
40 lines
753 B
Makefile
40 lines
753 B
Makefile
ifeq ($(findstring CYGWIN,$(shell uname -s)),CYGWIN)
|
|
WUT_ROOT := $(shell cygpath -w ${CURDIR})
|
|
else
|
|
WUT_ROOT := $(CURDIR)
|
|
endif
|
|
|
|
TARGETS := tools crt rpl
|
|
|
|
DESTDIR ?= $(CURDIR)
|
|
INSTALLDIR := $(DESTDIR)
|
|
|
|
export WUT_ROOT
|
|
export INSTALLDIR
|
|
|
|
all:
|
|
@for dir in $(TARGETS); do \
|
|
echo; \
|
|
echo "Entering Directory $$dir"; \
|
|
$(MAKE) --no-print-directory -C $$dir; \
|
|
echo "Leaving Directory $$dir"; \
|
|
done
|
|
|
|
clean:
|
|
@for dir in $(TARGETS); do \
|
|
echo; \
|
|
echo Cleaning $$dir; \
|
|
$(MAKE) --no-print-directory -C $$dir clean; \
|
|
done
|
|
|
|
install:
|
|
@mkdir -p $(INSTALLDIR)
|
|
@cp -r include $(INSTALLDIR) || :
|
|
@for dir in $(TARGETS); do \
|
|
echo; \
|
|
echo Installing $$dir; \
|
|
$(MAKE) --no-print-directory -C $$dir install; \
|
|
done
|
|
|
|
.PHONY: all clean install
|