efivar: dry

This commit is contained in:
Dylan Araps 2019-10-08 11:18:28 +03:00
parent f00b04aafc
commit c0f220d067
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 12 additions and 10 deletions

View File

@ -1,15 +1,17 @@
#!/bin/sh -e
patch -p1 < fix-gcc9-dp.h.patch
patch -p1 < fix-gcc9.patch
make libdir=/usr/lib/ \
bindir=/usr/bin/ \
mandir=/usr/share/man/ \
includedir=/usr/include/
# Avoid repeating ourselves.
mk() {
make \
libdir=/usr/lib/ \
bindir=/usr/bin/ \
mandir=/usr/share/man/ \
includedir=/usr/include/ \
"$@"
}
make libdir=/usr/lib/ \
bindir=/usr/bin/ \
mandir=/usr/share/man/ \
includedir=/usr/include/ \
DESTDIR="$1" \
install
mk
mk DESTDIR="$1" install