2013-04-17 06:01:47 +02:00
|
|
|
|
2013-04-17 06:01:47 +02:00
|
|
|
TARGETS= CMakeLists.txt
|
|
|
|
|
2013-04-17 06:01:47 +02:00
|
|
|
.DELETE_ON_ERROR:
|
2013-04-17 06:01:47 +02:00
|
|
|
.PHONY: CMakeLists.txt #It depends on the contents of the TOKUDB_DIR variable, simpler to just make it phony then depend on that.
|
2013-04-17 06:01:47 +02:00
|
|
|
ifeq ($(TOKUDB_DIR),)
|
|
|
|
#error
|
|
|
|
CMakeLists.txt: CMakeLists.in
|
|
|
|
false #Need to define TOKUDB_DIR
|
|
|
|
else
|
|
|
|
CMakeLists.txt: CMakeLists.in
|
2013-04-17 06:01:47 +02:00
|
|
|
sed -e "s?TOKUDB_DIR_REPLACE_ME?$(TOKUDB_DIR)?g" \
|
|
|
|
-e "s?TOKUDB_VERSION_REPLACE_ME?$(TOKUDB_VERSION)?g" < $< > $@
|
2013-04-17 06:01:47 +02:00
|
|
|
endif
|
|
|
|
|
2013-04-17 06:01:47 +02:00
|
|
|
clean:
|
|
|
|
rm -f $(TARGETS)
|
|
|
|
|