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
|
||||
|
||||
export DESTDIR = debian/tmp
|
||||
export VENDOR ?= 1
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_auto_clean:
|
||||
if ! ischroot && test "${VENDOR}" = "1"; then \
|
||||
just vendor; \
|
||||
fi
|
||||
ischroot || just vendor
|
||||
|
||||
override_dh_auto_build:
|
||||
just build-vendored
|
||||
test -e vendor.tar && just build-vendored || just
|
||||
|
||||
override_dh_auto_install:
|
||||
just rootdir=$(DESTDIR) install
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue