Create Makefile

This commit is contained in:
ferrreo 2023-08-30 18:51:55 +01:00 committed by GitHub
parent 64ce29f68d
commit f77ace3dc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

16
Makefile Normal file
View File

@ -0,0 +1,16 @@
all:
true
install:
mkdir -p $(DESTDIR)/usr/bin/
cd generator
go build -ldflags="-s -w" -o ./generator -buildvcs=false
cd ..
cd init
go build -ldflags="-s -w" -o ./init -buildvcs=false
cd ..
mkdir "$DESTDIR/etc/"
touch "$DESTDIR/etc/booster.yaml"
install -Dp -m755 generator/generator "$DESTDIR/usr/bin/booster"
install -Dp -m644 docs/manpage.1 "$DESTDIR/usr/share/man/man1/booster.1"
install -Dp -m755 init/init "$DESTDIR/usr/lib/booster/init"