2011-12-27 00:34:06 +00:00
|
|
|
#!/usr/bin/make -f
|
2012-11-26 23:59:42 +00:00
|
|
|
|
2012-12-03 07:45:17 +00:00
|
|
|
PKGFILES := pkg/*.service pkg/*.upstart pkg/*.logrotate
|
2012-12-04 09:21:38 +00:00
|
|
|
SALT_BIN := common minion master syndic
|
2012-11-26 23:59:42 +00:00
|
|
|
|
2011-10-04 03:46:11 +00:00
|
|
|
%:
|
2012-12-03 08:08:52 +00:00
|
|
|
cp $(PKGFILES) debian
|
2012-12-04 09:21:38 +00:00
|
|
|
for d in $(SALT_BIN); do \
|
|
|
|
cp pkg/salt.postrm debian/salt-$${d}.postrm; done
|
|
|
|
dh $@
|
|
|
|
|
|
|
|
dh_override_auto_build:
|
|
|
|
python setup.py build
|
2012-12-03 08:08:52 +00:00
|
|
|
make -C doc html
|
2012-12-04 09:21:38 +00:00
|
|
|
|
|
|
|
JS_FILES = searchtools doctools sidebar jquery underscore
|
|
|
|
|
|
|
|
override_dh_installdocs:
|
|
|
|
dh_installdocs
|
|
|
|
# Remove embedded copies of javascript libs
|
|
|
|
for f in $(JS_FILES) ; do \
|
|
|
|
cd debian/salt-doc/usr/share/doc/salt/html/_static/ \
|
|
|
|
&& rm $${f}.js \
|
|
|
|
&& ln -s ../../../../javascript/sphinxdoc/1.0/$${f}.js . \
|
|
|
|
&& cd $(CURDIR) ; \
|
|
|
|
done ;
|
|
|
|
|
|
|
|
override_dh_auto_clean:
|
|
|
|
make -C doc clean
|
|
|
|
dh_auto_clean
|