wut/Makefile

38 lines
684 B
Makefile
Raw Normal View History

2016-08-19 00:34:39 +01:00
ifeq ($(findstring CYGWIN,$(shell uname -s)),CYGWIN)
2016-06-03 00:04:22 +01:00
WUT_ROOT := $(shell cygpath -w ${CURDIR})
else
2015-12-26 18:10:38 -08:00
WUT_ROOT := $(CURDIR)
2016-06-03 00:04:22 +01:00
endif
2016-08-19 00:34:39 +01:00
TARGETS := tools crt rpl
2015-12-26 18:10:38 -08:00
2016-06-03 00:04:22 +01:00
export WUT_ROOT
2015-12-26 18:10:38 -08:00
all:
@for dir in $(TARGETS); do \
echo; \
2016-01-04 13:17:43 +00:00
echo "Entering Directory $$dir"; \
2015-12-26 18:10:38 -08:00
$(MAKE) --no-print-directory -C $$dir; \
2016-01-04 13:17:43 +00:00
echo "Leaving Directory $$dir"; \
2015-12-26 18:10:38 -08:00
done
clean:
@rm -rf lib
2016-01-04 05:46:52 -08:00
@rm -rf bin
2015-12-26 18:10:38 -08:00
@for dir in $(TARGETS); do \
2016-01-04 05:46:52 -08:00
echo; \
2015-12-26 18:10:38 -08:00
echo Cleaning $$dir; \
$(MAKE) --no-print-directory -C $$dir clean; \
done
install:
2016-01-04 13:17:43 +00:00
@mkdir -p bin
2015-12-26 18:10:38 -08:00
@mkdir -p lib
@for dir in $(TARGETS); do \
2016-01-04 05:46:52 -08:00
echo; \
2015-12-26 18:10:38 -08:00
echo Installing $$dir; \
$(MAKE) --no-print-directory -C $$dir install; \
done
.PHONY: all clean install