Initial debian packaging
This commit is contained in:
parent
ecd858dc9d
commit
8af56a5a34
5 changed files with 99 additions and 0 deletions
24
debian/rules
vendored
Executable file
24
debian/rules
vendored
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
CLEAN ?= 1
|
||||
VENDOR ?= 1
|
||||
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_auto_clean:
|
||||
ifeq ($(CLEAN),1)
|
||||
make clean
|
||||
endif
|
||||
ifeq ($(VENDOR),1)
|
||||
if ! ischroot; then \
|
||||
make vendor; \
|
||||
fi
|
||||
endif
|
||||
|
||||
override_dh_auto_build:
|
||||
env CARGO_HOME="$$(pwd)/target/cargo" \
|
||||
make all VENDOR=$(VENDOR) prefix=/usr
|
||||
|
||||
override_dh_auto_install:
|
||||
dh_auto_install -- prefix=/usr
|
||||
Loading…
Add table
Add a link
Reference in a new issue