summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlex Landau <alex.landau@xorcom.com>2008-12-28 08:55:04 +0000
committerAlex Landau <alex.landau@xorcom.com>2008-12-28 08:55:04 +0000
commit94e268f4d359d6d2de417f991b8ea6f420d60d58 (patch)
treed0f4b90f8b72fb198d14ea976523a5519f118f8e /Makefile
parentbfcceffc9b62841da0d48a87aeceead870a5092c (diff)
rapid-tunneling:
- deb support (not tested, probably not working) git-svn-id: svn+ssh://xorcom/home/svn/debs/components/rapid-tunneling@6500 283159da-0705-0410-b60c-f2062b4bb6ad
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ddbc85c..7cdcce6 100644
--- a/Makefile
+++ b/Makefile
@@ -9,12 +9,18 @@ SOURCES = Makefile $(SPEC) $(SCRIPTS) $(CONFIGS) $(INIT_D)
VER = $(shell awk '/^Version: / {print $$2}' $(SPEC)| head -n 1)
REL = $(shell awk '/^Release: / {print $$2}' $(SPEC)| head -n 1)
-all: rpm
+all: rpm deb
rpm: $(SPEC) SOURCES/$(PACKAGE)-$(VER).tar.gz
mkdir -p BUILD RPMS SOURCES SRPMS
[ -e SPECS ] || ln -s . SPECS
cd SPECS; rpmbuild --target noarch --define "_topdir $(PWD)" -ba $(SPEC)
+ mkdir -p OUTPUT
+ cp RPMS/rapid-tunneling{,-server}-$(VER)-$(REL).noarch.rpm OUTPUT/
+ cp SRPMS/rapid-tunneling-$(VER)-$(REL).src.rpm OUTPUT/
+
+deb:
+ debuild -uc -us
SOURCES/$(PACKAGE)-$(VER).tar.gz: $(SOURCES)
tar czf $@ --transform 's|^|$(PACKAGE)-$(VER)/|' $^