summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-02-26 14:00:23 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-02-26 14:00:23 -0500
commit7d58bfad3bc285261ef457473da3682232b07fa0 (patch)
treeb20f13db5d57f98aa4dcd700058ca52704f4b0b7 /Makefile
parent187b358c61dc1d177716e484df2ffde421489992 (diff)
make clean also depend on spec
so that the spec file is updated before building tarballs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 8f8239d..bedaac6 100644
--- a/Makefile
+++ b/Makefile
@@ -17,9 +17,6 @@ INSTALL_DATA=${INSTALL} -m 0644 -D
build: etckeeper.spec
-./etckeeper-bzr/__init__.py build || echo "** bzr support not built"
-etckeeper.spec:
- sed -i "s/Version:.*/Version: $$(perl -e '$$_=<>;print m/\((.*?)\)/'<debian/changelog)/" etckeeper.spec
-
install:
mkdir -p $(DESTDIR)$(etcdir)/etckeeper/ $(DESTDIR)$(vardir)/cache/etckeeper/
cp -a *.d $(DESTDIR)$(etcdir)/etckeeper/
@@ -40,7 +37,10 @@ endif
-./etckeeper-bzr/__init__.py install --root=$(DESTDIR) || echo "** bzr support not installed"
echo "** installation successful"
-clean:
+clean: etckeeper.spec
rm -rf build
+etckeeper.spec:
+ sed -i "s/Version:.*/Version: $$(perl -e '$$_=<>;print m/\((.*?)\)/'<debian/changelog)/" etckeeper.spec
+
.PHONY: etckeeper.spec