build(deb): make buildable without vendoring
This commit is contained in:
parent
50b3222571
commit
2bba46ecfe
1 changed files with 2 additions and 5 deletions
7
debian/rules
vendored
7
debian/rules
vendored
|
|
@ -1,18 +1,15 @@
|
||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
export DESTDIR = debian/tmp
|
export DESTDIR = debian/tmp
|
||||||
export VENDOR ?= 1
|
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@
|
dh $@
|
||||||
|
|
||||||
override_dh_auto_clean:
|
override_dh_auto_clean:
|
||||||
if ! ischroot && test "${VENDOR}" = "1"; then \
|
ischroot || just vendor
|
||||||
just vendor; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
override_dh_auto_build:
|
override_dh_auto_build:
|
||||||
just build-vendored
|
test -e vendor.tar && just build-vendored || just
|
||||||
|
|
||||||
override_dh_auto_install:
|
override_dh_auto_install:
|
||||||
just rootdir=$(DESTDIR) install
|
just rootdir=$(DESTDIR) install
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue