add a distclean target
authorWolfram Schneider <wosch@indexdata.dk>
Tue, 6 Apr 2010 14:47:45 +0000 (14:47 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Tue, 6 Apr 2010 14:47:45 +0000 (14:47 +0000)
zebra/Makefile

index 9a06425..09602b3 100644 (file)
@@ -1,5 +1,6 @@
 
-IRSPY_ARCHIVE= records-2007-05-01.tar.gz
+IRSPY_ARCHIVE=         records-2007-05-01
+IRSPY_ARCHIVE_EXT=     .tar.gz
 
 all: help
 
@@ -14,12 +15,15 @@ newdb:
        tar xzf ${IRSPY_ARCHIVE}
        zebraidx-2.0 init
        zebraidx-2.0 update zeerex.xml
-       zebraidx-2.0 update `basename ${IRSPY_ARCHIVE} .tar.gz`
+       zebraidx-2.0 update ${IRSPY_ARCHIVE}
        zebraidx-2.0 commit
 
 clean:
        rm -f terse.properties
 
+distclean: clean
+       rm -rf ${IRSPY_ARCHIVE}
+
 help:
-       @echo "make [ test | newdb | clean ]"
+       @echo "make [ test | newdb | clean | distclean ]"