Several fixes
diff --git a/packaging.mk b/packaging.mk
index 9d40d3d..33e5466 100644
--- a/packaging.mk
+++ b/packaging.mk
@@ -23,7 +23,16 @@
cd .. ; \
tar --exclude .git -czf ${NAME}_${VERSION}.orig.tar.gz ${NAME}_${VERSION}
-build: distro
+source-build:
+ $(MAKE) _build DEBUILD="debuild -S -sa"
+
+build:
+ $(MAKE) _build DEBUILD=debuild DISTROS=precise
+
+install: build
+ sudo dpkg -i work/*.deb
+
+_build: distro
\
if test -z "$$DEBEMAIL" -o -z "$$DEBFULLNAME"; then \
echo "DEBFULLNAME and DEBEMAIL environmental variable should be set" ; \
@@ -57,7 +66,7 @@
${DEBUILD} ; \
done
-dput: build
+dput: source-build
\
cd "work" ; \
for distro in ${DISTROS}; do \