zuul-packaging/debian/rules

33 lines
821 B
Makefile
Executable File

#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
UPSTREAM_GIT = git://github.com/openstack-infra/zuul.git
include /usr/share/openstack-pkg-tools/pkgos.make
export OSLO_PACKAGE_VERSION=$(VERSION)
%:
dh $@ --with python2,sphinxdoc
override_dh_auto_build:
dh_auto_build
$(MAKE) -C doc html man BUILDDIR=$(CURDIR)/build/docs
override_dh_auto_clean:
dh_auto_clean
rm -rf *.egg*
override_dh_auto_install:
dh_auto_install
install -D -m 0644 $(CURDIR)/etc/layout.yaml-sample $(CURDIR)/debian/etc/zuul/layout.yaml
install -D -m 0644 $(CURDIR)/etc/logging.conf-sample $(CURDIR)/debian/etc/zuul/logging.conf
install -D -m 0644 $(CURDIR)/etc/zuul.conf-sample $(CURDIR)/debian/etc/zuul/zuul.conf
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
nosetests
endif