CMAKE_INSTALL_PREFIX=$(PWD) #TARGET.dir?=sqlpp11 #TARGET.dir?=sqlpp11-connector-sqlite3 TARGETS.dir=sqlpp11 sqlpp11-connector-sqlite3 GIT.url=https://github.com/rbock/$(TARGET.dir).git CXX_COMPILER_EXE=/home/evansl/dwnlds/gcc/4.8.1/install/bin/g++ $(TARGET.dir): Makefile git clone $(GIT.url) cd $(TARGET.dir) ; \ cmake . \ -DCMAKE_CXX_COMPILER:FILEPATH=$(CXX_COMPILER_EXE) \ -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ -DCMAKE_INSTALL_PREFIX:PATH=$(CMAKE_INSTALL_PREFIX) \ ; \ make install \ # target_dir: $(TARGET.dir) targets_dir: Makefile -rm -rf $(TARGETS.dir) include ls for target in $(TARGETS.dir) ; do \ make TARGET.dir=$$target ; \ done ; \ ls ; \ # echo: echo "TARGET.dir="$(TARGET.dir)