wut/Makefile

37 lines
742 B
Makefile
Raw Normal View History

2015-12-27 03:10:38 +01:00
WUT_ROOT := $(CURDIR)
TARGETS := crt rpl
all:
@for dir in $(TARGETS); do \
echo; \
2016-01-04 14:17:43 +01:00
echo "Entering Directory $$dir"; \
2015-12-27 03:10:38 +01:00
$(MAKE) --no-print-directory -C $$dir; \
2016-01-04 14:17:43 +01:00
echo "Leaving Directory $$dir"; \
2015-12-27 03:10:38 +01:00
done
2016-01-04 14:17:43 +01:00
ifeq ($(OS),Windows_NT)
@echo "Please build tools with make-tools.bat"
else
@echo \
@echo "Entering Directory tools"
@$(MAKE) --no-print-directory -C tools
@echo "Leaving Directory tools"
endif
2015-12-27 03:10:38 +01:00
clean:
@rm -rf lib
@for dir in $(TARGETS); do \
echo Cleaning $$dir; \
$(MAKE) --no-print-directory -C $$dir clean; \
done
install:
2016-01-04 14:17:43 +01:00
@mkdir -p bin
2015-12-27 03:10:38 +01:00
@mkdir -p lib
@for dir in $(TARGETS); do \
echo Installing $$dir; \
$(MAKE) --no-print-directory -C $$dir install; \
done
2016-01-04 14:17:43 +01:00
@cp tools/bin/* bin/
2015-12-27 03:10:38 +01:00
.PHONY: all clean install