Fix relative install paths

This commit is contained in:
Jordan Speicher 2019-11-02 16:10:02 +00:00 committed by Johannes Pohl
parent 81fc9ba389
commit 17264a0409
2 changed files with 14 additions and 14 deletions

View file

@ -132,7 +132,7 @@ install:
echo macOS
install --strip -g wheel -o root $(BIN) $(TARGET_DIR)/local/bin/$(BIN)
install -g wheel -o root $(BIN).1 $(TARGET_DIR)/local/share/man/man1/$(BIN).1
install -g wheel -o root debian/$(BIN).plist /Library/LaunchAgents/de.badaix.snapcast.$(BIN).plist
install -g wheel -o root ../debian/$(BIN).plist /Library/LaunchAgents/de.badaix.snapcast.$(BIN).plist
launchctl load /Library/LaunchAgents/de.badaix.snapcast.$(BIN).plist
else
@ -160,16 +160,16 @@ installfiles:
installsystemd:
@echo using systemd; \
cp debian/$(BIN).service /lib/systemd/system/$(BIN).service; \
cp -n debian/$(BIN).default /etc/default/$(BIN); \
cp ../debian/$(BIN).service /lib/systemd/system/$(BIN).service; \
cp -n ../debian/$(BIN).default /etc/default/$(BIN); \
systemctl daemon-reload; \
systemctl enable $(BIN); \
systemctl start $(BIN); \
installsysv:
@echo using sysv; \
cp debian/$(BIN).init /etc/init.d/$(BIN); \
cp -n debian/$(BIN).default /etc/default/$(BIN); \
cp ../debian/$(BIN).init /etc/init.d/$(BIN); \
cp -n ../debian/$(BIN).default /etc/default/$(BIN); \
update-rc.d $(BIN) defaults; \
/etc/init.d/$(BIN) start; \

View file

@ -123,7 +123,7 @@ install:
echo BSD
install --strip -g wheel -o root -m 555 $(BIN) $(TARGET_DIR)/local/bin/$(BIN)
install -g wheel -o root -m 555 $(BIN).1 $(TARGET_DIR)/local/man/man1/$(BIN).1
install -g wheel -o root -m 555 debian/$(BIN).bsd $(TARGET_DIR)/local/etc/rc.d/$(BIN)
install -g wheel -o root -m 555 ../debian/$(BIN).bsd $(TARGET_DIR)/local/etc/rc.d/$(BIN)
else ifeq ($(TARGET), MACOS)
@ -131,7 +131,7 @@ install:
echo macOS
install --strip -g wheel -o root $(BIN) $(TARGET_DIR)/local/bin/$(BIN)
install -g wheel -o root $(BIN).1 $(TARGET_DIR)/local/share/man/man1/$(BIN).1
install -g wheel -o root debian/$(BIN).plist /Library/LaunchAgents/de.badaix.snapcast.$(BIN).plist
install -g wheel -o root ../debian/$(BIN).plist /Library/LaunchAgents/de.badaix.snapcast.$(BIN).plist
launchctl load /Library/LaunchAgents/de.badaix.snapcast.$(BIN).plist
else
@ -159,24 +159,24 @@ installfiles:
installsystemd:
@echo using systemd; \
cp debian/$(BIN).service /lib/systemd/system/$(BIN).service; \
cp -n debian/$(BIN).default /etc/default/$(BIN); \
cp -n server/etc/$(BIN).conf /etc/default/$(BIN).conf; \
cp ../debian/$(BIN).service /lib/systemd/system/$(BIN).service; \
cp -n ../debian/$(BIN).default /etc/default/$(BIN); \
cp -n ../server/etc/$(BIN).conf /etc/default/$(BIN).conf; \
systemctl daemon-reload; \
systemctl enable $(BIN); \
systemctl start $(BIN); \
installsysv:
@echo using sysv; \
cp debian/$(BIN).init /etc/init.d/$(BIN); \
cp -n debian/$(BIN).default /etc/default/$(BIN); \
cp -n server/etc/$(BIN).conf /etc/default/$(BIN).conf; \
cp ../debian/$(BIN).init /etc/init.d/$(BIN); \
cp -n ../debian/$(BIN).default /etc/default/$(BIN); \
cp -n ../server/etc/$(BIN).conf /etc/default/$(BIN).conf; \
update-rc.d $(BIN) defaults; \
/etc/init.d/$(BIN) start; \
installbsd:
@echo using bsd; \
cp debian/$(BIN).bsd /usr/local/etc/rc.d/$(BIN); \
cp ../debian/$(BIN).bsd /usr/local/etc/rc.d/$(BIN); \
adduser:
@if ! getent passwd snapserver >/dev/null; then \