Added jade check and install make target.
This commit is contained in:
parent
71c6aae91d
commit
6e3036e4bc
3
Makefile
3
Makefile
@ -16,6 +16,9 @@ ${TARGET}:
|
|||||||
go build -o bin/$@ ${LDFLAGS} cmd/$@/main.go
|
go build -o bin/$@ ${LDFLAGS} cmd/$@/main.go
|
||||||
go build -o bin/$@-clean ${LDFLAGS} cmd/$@-clean/main.go
|
go build -o bin/$@-clean ${LDFLAGS} cmd/$@-clean/main.go
|
||||||
|
|
||||||
|
install-jade:
|
||||||
|
go install github.com/Joker/jade/cmd/jade@latest
|
||||||
|
|
||||||
run:
|
run:
|
||||||
bin/${TARGET} -conf configs/config.yaml
|
bin/${TARGET} -conf configs/config.yaml
|
||||||
|
|
||||||
|
@ -21,6 +21,10 @@ md5sums=('SKIP')
|
|||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir/$pkgname"
|
cd "$srcdir/$pkgname"
|
||||||
|
if [ ! -f "$(go env GOPATH)/bin/jade" ]; then
|
||||||
|
make DESTDIR="$pkgdir/" install-jade
|
||||||
|
fi
|
||||||
|
|
||||||
make DESTDIR="$pkgdir/"
|
make DESTDIR="$pkgdir/"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user