2015-07-30 02:03:55 +03:00
|
|
|
#!/usr/bin/make -f
|
2016-04-04 23:25:38 +03:00
|
|
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
|
|
|
|
2015-07-30 02:03:55 +03:00
|
|
|
%:
|
|
|
|
dh $@
|
2015-08-05 23:05:40 +03:00
|
|
|
|
2016-04-04 23:25:38 +03:00
|
|
|
MAN=debian/dumb-init.1
|
|
|
|
|
|
|
|
override_dh_clean:
|
|
|
|
$(RM) -rv .cache
|
|
|
|
dh_clean $(MAN)
|
|
|
|
|
2016-06-02 03:42:20 +03:00
|
|
|
override_dh_auto_clean:
|
|
|
|
@true
|
|
|
|
|
2016-04-04 23:25:38 +03:00
|
|
|
$(MAN):
|
2016-01-08 00:51:50 +03:00
|
|
|
help2man --name 'a minimal init system for Linux containers' \
|
|
|
|
--no-discard-stderr \
|
|
|
|
--include debian/help2man \
|
|
|
|
--no-info \
|
2016-04-04 23:25:38 +03:00
|
|
|
./dumb-init > $@
|
|
|
|
|
|
|
|
override_dh_installman: $(MAN)
|
|
|
|
dh_installman
|
2016-01-08 00:51:50 +03:00
|
|
|
|
2015-08-05 23:05:40 +03:00
|
|
|
override_dh_builddeb:
|
2016-04-04 23:25:38 +03:00
|
|
|
# Use gzip instead of xz to support older Debian/Ubuntu releases which
|
|
|
|
# might install our debs.
|
2015-08-05 23:05:40 +03:00
|
|
|
dh_builddeb -- -Zgzip
|
2015-08-08 02:03:48 +03:00
|
|
|
|
|
|
|
override_dh_auto_test:
|
2015-09-12 01:57:22 +03:00
|
|
|
find . -name '*.pyc' -delete
|
2015-09-17 03:16:05 +03:00
|
|
|
find . -name '__pycache__' -delete
|
2015-09-12 01:57:22 +03:00
|
|
|
PATH=.:$$PATH py.test tests/
|
|
|
|
ps aux
|