booster/Makefile
Renaud Lepage 5372450369 Disregard images, do pkexec (#2)
Track https://github.com/ferrreo/booster/pull/1 changes

Reviewed-on: #2
Co-authored-by: Renaud Lepage <root@cybikbase.com>
Co-committed-by: Renaud Lepage <root@cybikbase.com>
2024-09-16 19:40:57 +02:00

18 lines
888 B
Makefile

all:
true
install:
mkdir -p $(DESTDIR)/usr/bin/
cd ./generator ; go build -trimpath -buildmode=pie -buildvcs=false -mod=readonly -modcacherw -o ./generator
cd ./init ; CGO_ENABLED=0 go build -trimpath -buildvcs=false -mod=readonly -modcacherw -o ./init
ronn docs/manpage.md
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"
install -Dp -m755 ./update-initramfs "$(DESTDIR)/usr/lib/booster/update-initramfs"
install -Dp -m755 ./packaging/pikaos/regenerate_uki "$(DESTDIR)/usr/sbin/regenerate_uki"
install -Dp -m755 ./packaging/pikaos/regenerate_uki-pkexec "$(DESTDIR)/usr/bin/regenerate_uki"
install -Dp -m755 ./booster.yml "$(DESTDIR)/etc/booster.yaml"