Remove "Makefile" targets, as they don't do what Eric wantedpull/898/head
parent
ccc8542329
commit
f00ba327d9
@ -1,26 +1,34 @@
|
|||||||
COMMON_LIB_DIR?=${PWD}/lib
|
COMMON_LIB_DIR?=${PWD}/lib
|
||||||
TEST_DIRS=$(shell dirname $(wildcard */Makefile))
|
TEST_DIRS=$(shell dirname $(wildcard */Makefile))
|
||||||
|
|
||||||
Makefile: ${TEST_DIRS} FORCE
|
DIRS=googletest hello-simulator kaleidoscope common
|
||||||
|
CLEANDIRS = $(DIRS:%=clean-%)
|
||||||
|
|
||||||
|
.PHONY: subdirs $(CLEANDIRS)
|
||||||
|
.PHONY: subdirs $(DIRS)
|
||||||
|
|
||||||
|
clean: googletest/Makefile $(CLEANDIRS)
|
||||||
|
rm -rf "$(COMMON_LIB_DIR)"
|
||||||
|
|
||||||
|
$(CLEANDIRS):
|
||||||
|
cd $(@:clean-%=%) && $(MAKE) clean
|
||||||
|
|
||||||
|
all: ${TEST_DIRS}
|
||||||
@echo TEST_DIRS="${TEST_DIRS}"
|
@echo TEST_DIRS="${TEST_DIRS}"
|
||||||
|
|
||||||
googletest: FORCE
|
googletest: googletest/Makefile
|
||||||
cd googletest && $(MAKE)
|
cd googletest && $(MAKE)
|
||||||
|
|
||||||
common: FORCE
|
googletest/Makefile:
|
||||||
cd common && env COMMON_LIB_DIR="${COMMON_LIB_DIR}" $(MAKE)
|
cd googletest && cmake .
|
||||||
|
|
||||||
clean:
|
common:
|
||||||
rm -rf "${COMMON_LIB_DIR}"
|
cd common && COMMON_LIB_DIR="${COMMON_LIB_DIR}" $(MAKE)
|
||||||
cd googletest && make clean
|
|
||||||
cd common && make clean
|
|
||||||
cd hello-simulator && make clean
|
|
||||||
cd kaleidoscope && make clean
|
|
||||||
|
|
||||||
hello-simulator:
|
hello-simulator:
|
||||||
@:
|
@:
|
||||||
|
|
||||||
%: common googletest FORCE
|
%: common googletest
|
||||||
cd "$@" && $(MAKE)
|
cd "$@" && $(MAKE)
|
||||||
|
|
||||||
.PHONY: FORCE googletest build-libs
|
.PHONY: googletest build-libs common
|
||||||
|
Loading…
Reference in new issue