2023-08-30 19:51:55 +02:00
|
|
|
all:
|
|
|
|
true
|
|
|
|
|
|
|
|
install:
|
|
|
|
mkdir -p $(DESTDIR)/usr/bin/
|
2023-08-30 20:03:02 +02:00
|
|
|
ls
|
|
|
|
cd ./generator
|
|
|
|
ls
|
2023-08-30 19:51:55 +02:00
|
|
|
go build -ldflags="-s -w" -o ./generator -buildvcs=false
|
2023-08-30 20:01:05 +02:00
|
|
|
cd ..
|
2023-08-30 20:03:02 +02:00
|
|
|
cd ./init
|
2023-08-30 20:01:05 +02:00
|
|
|
go build -ldflags="-s -w" -o ./init -buildvcs=false
|
|
|
|
cd ..
|
|
|
|
mkdir "$DESTDIR/etc/"
|
|
|
|
touch "$DESTDIR/etc/booster.yaml"
|
2023-08-30 20:03:02 +02:00
|
|
|
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"
|