Update Makefile

This commit is contained in:
ferrreo 2023-08-30 19:05:09 +01:00 committed by GitHub
parent e5d4b89d38
commit 73f1f836bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,14 +3,8 @@ all:
install:
mkdir -p $(DESTDIR)/usr/bin/
ls
cd ./generator
ls
go build -ldflags="-s -w" -o ./generator -buildvcs=false
cd ..
cd ./init
go build -ldflags="-s -w" -o ./init -buildvcs=false
cd ..
cd ./generator ; go build -ldflags="-s -w" -o ./generator -buildvcs=false
cd ./init ; go build -ldflags="-s -w" -o ./init -buildvcs=false
mkdir "$DESTDIR/etc/"
touch "$DESTDIR/etc/booster.yaml"
install -Dp -m755 ./generator/generator "$DESTDIR/usr/bin/booster"