Fix FTBFS with arch-only builds
[shibboleth/xmltooling.git] / debian / rules
1 #!/usr/bin/make -f
2
3 DOCS = debian/libxmltooling-doc/usr/share/doc/libxmltooling-doc
4
5 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
6     DEBUG = --enable-debug
7 else
8     DEBUG =
9 endif
10
11 override_dh_auto_configure:
12         dh_auto_configure -- --disable-dependency-tracking $(DEBUG)
13
14 override_dh_installdocs:
15         dh_installdocs -A doc/NOTICE.txt
16         set -e; if [ -d "$(DOCS)" ] ; then \
17             rm $(DOCS)/html/jquery.js ; \
18             ln -s /usr/share/javascript/jquery/jquery.min.js \
19                 $(DOCS)/html/jquery.js ; \
20         fi
21
22 %:
23         dh $@ --with autotools_dev