diff --git a/Makefile b/Makefile index 9459169..7839ecb 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ DATADIR ?= $(PREFIX)/share CONFDIR = /etc install: - sed "s/%DATADIR%/\/usr\/share/" lightdm-mobile-greeter.py > lightdm-mobile-greeter + sed "s#%DATADIR%#$(DATADIR)#" lightdm-mobile-greeter.py > lightdm-mobile-greeter install -Dm755 lightdm-mobile-greeter -t $(DESTDIR)$(BINDIR) install -Dm644 style.css interface.ui -t $(DESTDIR)$(DATADIR)/lightdm-mobile-greeter install -Dm644 lightdm-mobile-greeter.desktop -t $(DESTDIR)$(DATADIR)/xgreeters \ No newline at end of file