stdcxx: fix src recipe

fixes #2649
This commit is contained in:
Pirmin Duss 2018-01-20 11:05:05 +01:00 committed by Norman Feske
parent 33ba587813
commit 0423eb4499

View File

@ -2,21 +2,18 @@ MIRROR_FROM_REP_DIR := lib/mk/stdcxx-c++98.mk \
lib/mk/stdcxx.mk \
lib/import/import-stdcxx.mk
content: $(MIRROR_FROM_REP_DIR) src/lib/stdcxx/target.mk
MIRROR_FROM_PORT_DIR := src/lib/stdcxx
content: $(MIRROR_FROM_REP_DIR) $(MIRROR_FROM_PORT_DIR) src/lib/stdcxx/target.mk
$(MIRROR_FROM_REP_DIR):
$(mirror_from_rep_dir)
src/lib/stdcxx/target.mk:
mkdir -p $(dir $@)
src/lib/stdcxx/target.mk: $(MIRROR_FROM_PORT_DIR)
echo "LIBS = stdcxx" > $@
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/stdcxx)
MIRROR_FROM_PORT_DIR := src/lib/stdcxx
content: $(MIRROR_FROM_PORT_DIR)
$(MIRROR_FROM_PORT_DIR):
mkdir -p $(dir $@)
cp -r $(PORT_DIR)/$@ $(dir $@)