cleanup: remove packaging just files and reference to debian in .gitignore
This commit is contained in:
parent
635b3ffc09
commit
bc1c0397bb
3 changed files with 0 additions and 55 deletions
7
.gitignore
vendored
7
.gitignore
vendored
|
|
@ -1,10 +1,3 @@
|
||||||
debian/*
|
|
||||||
!debian/changelog
|
|
||||||
!debian/control
|
|
||||||
!debian/copyright
|
|
||||||
!debian/install
|
|
||||||
!debian/rules
|
|
||||||
!debian/source
|
|
||||||
.cargo
|
.cargo
|
||||||
.idea
|
.idea
|
||||||
Cargo.lock
|
Cargo.lock
|
||||||
|
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
[private]
|
|
||||||
install-cmd options src dest:
|
|
||||||
install {{options}} {{src}} {{dest}}
|
|
||||||
|
|
||||||
[private]
|
|
||||||
install-bin src dest: (install-cmd '-Dm0755' src dest)
|
|
||||||
|
|
||||||
[private]
|
|
||||||
install-file src dest: (install-cmd '-Dm0644' src dest)
|
|
||||||
|
|
@ -1,39 +0,0 @@
|
||||||
# Use mold linker if clang and mold exists.
|
|
||||||
clang-path := `which clang || true`
|
|
||||||
mold-path := `which mold || true`
|
|
||||||
|
|
||||||
linker-arg := if clang-path != '' {
|
|
||||||
if mold-path != '' {
|
|
||||||
'-C linker=' + clang-path + ' -C link-arg=--ld-path=' + mold-path + ' '
|
|
||||||
} else {
|
|
||||||
''
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
''
|
|
||||||
}
|
|
||||||
|
|
||||||
export RUSTFLAGS := linker-arg + env_var_or_default('RUSTFLAGS', '')
|
|
||||||
|
|
||||||
[private]
|
|
||||||
default: build-release
|
|
||||||
|
|
||||||
# Compile with release profile
|
|
||||||
build-release *args: (build '--release' args)
|
|
||||||
|
|
||||||
# Compile with a vendored tarball
|
|
||||||
build-vendored *args: vendor-extract (build-release '--offline --locked' args)
|
|
||||||
|
|
||||||
# Vendor Cargo dependencies locally
|
|
||||||
vendor *args:
|
|
||||||
rm -rf .cargo vendor vendor.tar
|
|
||||||
mkdir -p .cargo
|
|
||||||
cargo vendor {{args}} | head -n -1 > .cargo/config
|
|
||||||
echo 'directory = "vendor"' >> .cargo/config
|
|
||||||
tar pcf vendor.tar vendor
|
|
||||||
rm -rf vendor
|
|
||||||
|
|
||||||
# Extracts vendored dependencies
|
|
||||||
[private]
|
|
||||||
vendor-extract:
|
|
||||||
rm -rf vendor
|
|
||||||
tar pxf vendor.tar
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue