2020-01-23 12:53:43 +00:00
|
|
|
PREFIX?=/usr/local
|
|
|
|
|
|
|
|
all: install
|
|
|
|
|
|
|
|
install:
|
2020-01-23 17:21:45 +00:00
|
|
|
install -m 755 bin/uncloud-init $(PREFIX)/bin/uncloud-init
|
|
|
|
install -m 755 bin/uncloud-init-growpart $(PREFIX)/bin/uncloud-init-growpart
|
|
|
|
if command -v systemd; then \
|
|
|
|
install -m 644 uncloud-init.service /etc/systemd/system/uncloud-init.service; \
|
|
|
|
else \
|
|
|
|
install -m 755 uncloud-init.rc /etc/init.d/uncloud-init; \
|
|
|
|
fi
|