[sr-dev] git:master: Makefile: use pkg/$MAIN_NAME/debian for defs

Daniel-Constantin Mierla miconda at gmail.com
Thu Jan 28 14:43:47 CET 2010


Module: sip-router
Branch: master
Commit: cfbf5a105a70d4066ef526dbdb1272ceef4fdbd4
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=cfbf5a105a70d4066ef526dbdb1272ceef4fdbd4

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Thu Jan 28 13:53:58 2010 +0100

Makefile: use pkg/$MAIN_NAME/debian for defs

- if pkg/$MAIN_NAME/debian dir exists use it to build debs, otherwise
  use pkg/debian

---

 Makefile |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index be0b339..360aaf0 100644
--- a/Makefile
+++ b/Makefile
@@ -810,6 +810,10 @@ bin:
 deb:
 	- at if [ -d debian ]; then \
 		dpkg-buildpackage -rfakeroot -tc; \
+	elif [ -d pkg/$(MAIN_NAME)/debian ]; then \
+		ln -s pkg/$(MAIN_NAME)/debian debian; \
+		dpkg-buildpackage -rfakeroot -tc; \
+		rm debian; \
 	else \
 		ln -s pkg/debian debian; \
 		dpkg-buildpackage -rfakeroot -tc; \




More information about the sr-dev mailing list