X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=debian%2Frules;h=6357268d538253448d1faac96ab6b0b8ad6342c1;hp=fece672aef8cbf8f3be503c4bf72fef9b0bacc78;hb=d655b298e3ac4ecba08885ab8c96cdbafc83c155;hpb=cbca47ad5bff421a432a2183c28b897acaeb4b02 diff --git a/debian/rules b/debian/rules index fece672a..6357268d 100755 --- a/debian/rules +++ b/debian/rules @@ -3,7 +3,7 @@ # dgit # Integration between git and Debian-style archives # -# Copyright (C)2013 Ian Jackson +# Copyright (C)2013-2015 Ian Jackson # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -29,3 +29,13 @@ override_dh_gencontrol: cd debian/dgit; \ v=$$(perl -ne 'print if s/^version:\s+//i' DEBIAN/control); \ perl -i -pe "s/UNRELEASED/$$v/g if m/###substituted###/" usr/bin/dgit + +override_dh_auto_install: + make install prefix=/usr DESTDIR=debian/dgit + make install-infra prefix=/usr DESTDIR=debian/dgit-infrastructure + +debian/tests/control: tests/enumerate-tests debian/tests/control.in + $< gencontrol >$@.new && mv -f $@.new $@ + +debian/tests/control: tests/lib-core tests/lib-restricts +debian/tests/control: tests/tests $(wildcard tests/tests/*[^~#])