summaryrefslogtreecommitdiff
path: root/data/cwidget/debian/rules
blob: 44fc573e0831e9e03bb6021fe04d5732ab6c2323 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/make -f

#export DH_VERBOSE=1


export DEB_CXXFLAGS_MAINT_APPEND := -pipe -Wall -std=c++11
export DEB_LDFLAGS_MAINT_APPEND  := -Wl,--as-needed


%:
	dh $@ --with autoreconf --parallel

override_dh_auto_configure:
	dh_auto_configure -- --disable-werror $(CROSS_CONFIGURE_OPTIONS)

override_dh_auto_clean:
	-rm -rf doc/ikiwiki/.ikiwiki
	dh_auto_clean

# Build indep overrides
override_dh_auto_build-indep:
	$(MAKE) -C doc doc

override_dh_auto_test-indep:
        # No tests needed for docs

override_dh_auto_install-indep:
	$(MAKE) -C doc install
	dh_install -i -Xjquery.min.js -Xjquery.js

override_dh_installchangelogs:
	dh_installchangelogs -- NEWS

override_dh_installexamples:
	dh_installexamples -plibcwidget-dev src/cwidget/testcwidget.cc

override_dh_strip:
	dh_strip -a --dbg-package=libcwidget3v5-dbg