dot

packages and services management
Log | Files | Refs | README

commit 62cf6d3a01caf0b82b793890f67086c3a942aab1
parent 946953536524c1447916989a9c53f00dac46d1ae
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Fri, 28 Jul 2017 23:06:22 +0200

dma/build: less repetitive script (that still does not compile yet)

Diffstat:
Mdma/build | 17+++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/dma/build b/dma/build @@ -1,18 +1,19 @@ mkdir -p "$PREFIX/bin" "$PREFIX/share/man/man8" "$VAR/spool/dma" +case "$(uname)" in (*BSD ) cd bsd ;; esac + +make PREFIX="$PREFIX" \ + CONFDIR="$ETC/dma" \ + VAR="$VAR" \ + CFLAGS+="-I$OPT/libopenssl/include" \ + LDFLAGS+="-L$OPT/libopenssl/lib" + case "$(uname)" in -(*BSD ) - cd bsd - make PREFIX="$PREFIX" CONFDIR="$ETC/dma" VAR="$VAR" \ - CFLAGS+="-I$OPT/libopenssl/include" \ - LDFLAGS+="-L$OPT/libopenssl/lib" +(*BSD) cp dma/dma "$PREFIX/bin/dma" cp ../dma.8 "$PREFIX/share/man/man8" ;; (Linux) - make PREFIX="$PREFIX" CONFDIR="$ETC/dma" VAR="$VAR" \ - CFLAGS+="-I$OPT/libopenssl/include" \ - LDFLAGS+="-L$OPT/libopenssl/lib" cp dma "$PREFIX/bin/dma" cp dma.8 "$PREFIX/share/man/man8" ;;