From ac78ecc2761c11a5d6e747e62df277467d7a54ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Oudot?= Date: Mon, 24 Feb 2014 10:25:18 +0000 Subject: [PATCH] Create a new make target to generate local packages for developpement (#689) --- Makefile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b4671d700..065cfbedd 100644 --- a/Makefile +++ b/Makefile @@ -601,7 +601,7 @@ manager_clean: @if test -e ${SRCMANAGERDIR}/Makefile;then $(MAKE) -C ${SRCMANAGERDIR} distclean;fi @rm -vf manager* -debian-packages: debian-dist +debian-local-packages: debian-dist mv lemonldap-ng_$(VERSION).orig.$(COMPRESSSUFFIX) /tmp/ version=$(VERSION) && \ cd /tmp/ && \ @@ -613,7 +613,19 @@ debian-packages: debian-dist --lintian-opts --color --lintian-opts auto --lintian-opts -L \ --lintian-opts +=pedantic -debian-install: debian-packages +debian-packages: debian-dist + mv lemonldap-ng_$(VERSION).orig.$(COMPRESSSUFFIX) /tmp/ + version=$(VERSION) && \ + cd /tmp/ && \ + rm -rf lemonldap-ng-$$version && \ + $(UNCOMPRESS) lemonldap-ng_$$version.orig.$(COMPRESSSUFFIX) && \ + cd lemonldap-ng-$$version && \ + debuild -us -uc -b --lintian-opts -i \ + --lintian-opts -v --lintian-opts -I --lintian-opts -E \ + --lintian-opts --color --lintian-opts auto --lintian-opts -L \ + --lintian-opts +=pedantic + +debian-install: debian-local-packages cd /tmp/lemonldap-ng-$(VERSION) && \ $(SU) debi