summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-11-16 07:54:59 +0100
committerSebastien Helleu <flashcode@flashtux.org>2012-11-16 07:54:59 +0100
commitadec2dec0e3b906d605148dcc10c2ff4801af404 (patch)
tree1f14057fdf764963903674fa4ddab5d7609259b9 /debian/rules
parentf1d6f2c40a8e2f7faa85cca2202a4b6ed790c869 (diff)
downloadweechat-adec2dec0e3b906d605148dcc10c2ff4801af404.zip
core: sync debian files with debian git repository
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules27
1 files changed, 7 insertions, 20 deletions
diff --git a/debian/rules b/debian/rules
index b94cae8b9..4e29100be 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,9 +8,11 @@ LDFLAGS = -Wl,-Bsymbolic-functions
DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/buildflags.mk
-builddir/Makefile:
- mkdir -p builddir
- cd builddir && \
+BUILDDIR = builddir
+
+$(BUILDDIR)/Makefile:
+ mkdir -p $(BUILDDIR)
+ cd $(BUILDDIR) && \
cmake .. \
-DCMAKE_INSTALL_PREFIX:FILEPATH=/usr \
-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
@@ -19,14 +21,7 @@ builddir/Makefile:
-DCMAKE_SKIP_RPATH:BOOL=ON \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
-#build: build-stamp
-#build-stamp: builddir/Makefile
-# dh_testdir
-# $(MAKE) -C builddir VERBOSE=1
-# touch $@
-
-override_dh_auto_build: builddir/Makefile
- $(MAKE) -C builddir
+override_dh_auto_build: $(BUILDDIR)/Makefile
dh_auto_build
override_dh_auto_configure:
@@ -34,16 +29,8 @@ override_dh_auto_configure:
# debhelper try to use it but that's not needed
echo
-override_dh_install:
- $(MAKE) -C builddir DESTDIR=$(CURDIR)/debian/tmp install
- dh_install
-
override_dh_strip:
dh_strip --dbg-package=weechat-dbg
-clean:
- rm -rf builddir
- dh $@
-
%:
- dh $@
+ dh $@ --parallel --builddirectory=$(BUILDDIR)