look for config files in standard location on installation

This commit is contained in:
James Barnett
2017-06-03 20:22:59 -04:00
parent c4654b8859
commit 0dd0300a23
4 changed files with 19 additions and 16 deletions

View File

@@ -25,6 +25,6 @@ SYSTEMD_DIR = $(DESTDIR)$(PREFIX)/lib/systemd/system
.PHONY: install
install:
@sed -i 's@^SNAPPER_CONFIG.*@SNAPPER_CONFIG='$(SNAPPER_CONFIG)'@g' bin/$(PKGNAME)
@./find_snapper_config || sed -i 's@^SNAPPER_CONFIG.*@SNAPPER_CONFIG='$(SNAPPER_CONFIG)'@g' bin/$(PKGNAME)
@install -Dm755 bin/* -t $(BIN_DIR)/
@install -Dm644 systemd/* -t $(SYSTEMD_DIR)/