changeset 547:da48541c64c0

Fix 'clean' target for Debian packaging.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Wed, 21 Nov 2012 00:49:26 +0200
parents 90459a37d38a
children 6b0168a5bfc8
files printarg/Makefile
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/printarg/Makefile	Wed Nov 21 00:43:19 2012 +0200
+++ b/printarg/Makefile	Wed Nov 21 00:49:26 2012 +0200
@@ -193,12 +193,15 @@
 .PHONY: distclean
 distclean: clean
 
-DIST_FILES := printarg.tar.gz
+DIST_FILES := ${B}$(PKG).tar.gz
 DIST_CYGWIN_FILES := printarg-1.0-1-src.tar.bz2 printarg-1.0-1.tar.bz2
-DIST_DEBIAN_FILES := debian/ ../printarg_1.0.orig.tar.gz
+DEBIAN_PKG := $(PKG_NAME)_$(PKG_VERSION)-1
+DIST_DEBIAN_FILES := $(DEBIAN_PKG).debian.tar.gz $(DEBIAN_PKG).dsc \
+    $(DEBIAN_PKG)_amd64.build $(DEBIAN_PKG)_amd64.changes $(DEBIAN_PKG)_amd64.deb \
+    $(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
 
 .PHONY: clean
 clean:
-	rm -f ${B}$(APP) $(O_FILES) $(DIST_FILES) $(DIST_CYGWIN_FILES)
+	rm -f ${B}$(APP) $(O_FILES) $(DIST_FILES) $(DIST_CYGWIN_FILES) $(DIST_DEBIAN_FILES)
 	rm -rf $(PKG)