From: Wolfram Schneider Date: Mon, 12 Apr 2010 12:43:12 +0000 (+0000) Subject: use make variables X-Git-Tag: CPAN-v1.02~148^2~13 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=6a36cfe1c7dba65348c71f272dffcb1d3d14694c;p=irspy-moved-to-github.git use make variables --- diff --git a/zebra/Makefile b/zebra/Makefile index 86154e2..0e24ddd 100644 --- a/zebra/Makefile +++ b/zebra/Makefile @@ -3,6 +3,8 @@ IRSPY_ARCHIVE= records-2010-04-06 IRSPY_ARCHIVE_EXT= .tar.gz DUMP_DIR= irspy-dump ZEBRA_DIR= db +ZEBRAIDX= zebraidx-2.0 +ZEBRAIDX_TEST= zebraidx-2.0 -c zebra-test.cfg # debugging ZEBRA_TEST_DIR= db-test @@ -21,18 +23,18 @@ terse.properties: pqf.properties newdb: tar xzf ${DUMP_DIR}/${IRSPY_ARCHIVE}${IRSPY_ARCHIVE_EXT} mkdir -p ${ZEBRA_DIR}/lock ${ZEBRA_DIR}/register ${ZEBRA_DIR}/shadow ${ZEBRA_DIR}/tmp - zebraidx-2.0 init - zebraidx-2.0 update zeerex.xml - zebraidx-2.0 update ${IRSPY_ARCHIVE} - zebraidx-2.0 commit + ${ZEBRAIDX} init + ${ZEBRAIDX} update zeerex.xml + ${ZEBRAIDX} update ${IRSPY_ARCHIVE} + ${ZEBRAIDX} commit newdb-test: tar xzf ${DUMP_DIR}/${IRSPY_ARCHIVE}${IRSPY_ARCHIVE_EXT} mkdir -p ${ZEBRA_TEST_DIR}/lock ${ZEBRA_TEST_DIR}/register ${ZEBRA_TEST_DIR}/shadow ${ZEBRA_TEST_DIR}/tmp - zebraidx-2.0 -c zebra-test.cfg init - zebraidx-2.0 -c zebra-test.cfg update zeerex-test.xml - zebraidx-2.0 -c zebra-test.cfg update ${IRSPY_ARCHIVE} - zebraidx-2.0 -c zebra-test.cfg commit + ${ZEBRAIDX_TEST} init + ${ZEBRAIDX_TEST} update zeerex-test.xml + ${ZEBRAIDX_TEST} update ${IRSPY_ARCHIVE} + ${ZEBRAIDX_TEST} commit dump: rm -rf records-${DATE}.old