Description: Upstream changes introduced in version 201008131729-6
 This patch has been created by dpkg-source during the package build.
 Here's the last changelog entry, hopefully it gives details on why
 those changes were made:
 .
 dsc-statistics (201008131729-6) unstable; urgency=low
 .
   * work around debhelper limitation to allow arch-only
     builds. Thanks to Ansgar Burchardt.
   * make puiparts (hopefully) happy: improve
     dsc-statistics-presenter.cron.daily's behavior on removed package
     and/or non-existent data
 .
 The person named in the Author field signed this changelog entry.
Author: Marc Haber <mh+debian-packages@zugschlus.de>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- dsc-statistics-201008131729.orig/collector/Makefile
+++ dsc-statistics-201008131729/collector/Makefile
@@ -1,3 +1,19 @@
-all clean install:
+# this could be written with make -C
+all:
 	(cd dsc; test -s Makefile || ./configure ; $(MAKE) $@)
 	(cd cron; $(MAKE) $@)
+
+install: all
+	(cd dsc; $(MAKE) $@)
+	(cd cron; $(MAKE) $@)
+
+clean:
+	(cd dsc; test -s Makefile && $(MAKE) clean || true)
+	(cd TmfBase/Hapy; test -s Makefile && $(MAKE) distclean || true)
+	rm -f dsc/config.h dsc/config.log dsc/config.status dsc/Makefile
+	#      TmfBase/Hapy/config.log TmfBase/Hapy/_configs.sed \
+	#      TmfBase/Hapy/config.status
+	#rm -rf TmfBase/Hapy/doc/.deps
+	(cd cron; $(MAKE) $@)
+
+.PHONY: all install clean
--- dsc-statistics-201008131729.orig/presenter/Makefile
+++ dsc-statistics-201008131729/presenter/Makefile
@@ -1,11 +1,13 @@
+#!/usr/bin/make
+
 INSTALLDIR=/usr/local/dsc
 MKDIRS=data cache etc var var/log
 
-all clean:
+all:
 	(cd cron; $(MAKE) $@)
 	(cd extractor; $(MAKE) $@)
 	(cd grapher; $(MAKE) $@)
-	(cd perllib; test -f Makefile || perl Makefile.PL ; $(MAKE) $@)
+	(cd perllib; test -f Makefile || perl Makefile.PL INSTALLDIRS=vendor; $(MAKE) $@ PREFIX=$(CURDIR)/../debian/dsc-statistics-presenter/usr)
 
 install:
 	@for f in ${MKDIRS} ; do \
@@ -14,8 +16,15 @@ install:
 		install -d -m 755 $(INSTALLDIR)/$$f/ ; \
 	fi \
 	done
-	(cd perllib; test -f Makefile || perl Makefile.PL ; $(MAKE) $@)
+	(cd perllib; test -f Makefile || perl Makefile.PL INSTALLDIRS=vendor ; $(MAKE) $@ PREFIX=$(CURDIR)/../debian/dsc-statistics-presenter/usr)
 	(cd cron; $(MAKE) $@)
 	(cd extractor; $(MAKE) $@)
 	(cd grapher; $(MAKE) $@)
 
+clean:
+	(cd cron; $(MAKE) $@)
+	(cd extractor; $(MAKE) $@)
+	(cd grapher; $(MAKE) $@)
+	(cd perllib; test -f Makefile || perl Makefile.PL ; $(MAKE) $@)
+	rm -f perllib/Makefile.old
+	
\ No newline at end of file
