From 5a01b09bce396c079f9e66076cc9609ec2e9904f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 1 May 2014 10:16:43 +0200 Subject: fix makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index e3f8f18..67fcff8 100644 --- a/Makefile +++ b/Makefile @@ -72,28 +72,28 @@ install: install-cmd install-license install-info .PHONY: install-cmd install-cmd: bin/adjbacklight - install -d -- "$(DESTDIR)$(PREFIX)$(BIN)" - install -m4755 -- bin/adjbacklight "$(DESTDIR)$(PREFIX)$(BIN)/$(COMMAND)" + install -d -- "$(DESTDIR)$(BINDIR)" + install -m4755 -- bin/adjbacklight "$(DESTDIR)$(BINDIR)/$(COMMAND)" .PHONY: install-license install-license: - install -d -- "$(DESTDIR)$(PREFIX)$(LICENSES)/$(PKGNAME)" - install -m644 -- COPYING LICENSE "$(DESTDIR)$(PREFIX)$(LICENSES)/$(PKGNAME)" + install -d -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)" + install -m644 -- COPYING LICENSE "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)" .PHONY: install-info install-info: $(MANUAL).info - install -d -- "$(DESTDIR)$(PREFIX)$(DATA)/info" - install -m644 -- "$(MANUAL).info" "$(DESTDIR)$(PREFIX)$(DATA)/info/$(PKGNAME).info" + install -d -- "$(DESTDIR)$(DATADIR)/info" + install -m644 -- "$(MANUAL).info" "$(DESTDIR)$(DATADIR)/info/$(PKGNAME).info" # remove files created by `install` .PHONY: uninstall uninstall: - -rm -- "$(DESTDIR)$(PREFIX)$(BIN)/$(COMMAND)" - -rm -- "$(DESTDIR)$(PREFIX)$(DATA)$(LICENSES)/$(PKGNAME)/COPYING" - -rm -- "$(DESTDIR)$(PREFIX)$(DATA)$(LICENSES)/$(PKGNAME)/LICENSE" - -rm -d -- "$(DESTDIR)$(PREFIX)$(DATA)$(LICENSES)/$(PKGNAME)" - -rm -- "$(DESTDIR)$(PREFIX)$(DATA)/info/$(PKGNAME).info.gz" + -rm -- "$(DESTDIR)$(BINDIR)/$(COMMAND)" + -rm -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/COPYING" + -rm -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)/LICENSE" + -rm -d -- "$(DESTDIR)$(LICENSEDIR)/$(PKGNAME)" + -rm -- "$(DESTDIR)$(DATADIR)/info/$(PKGNAME).info.gz" # remove files created by `all` -- cgit v1.2.3-70-g09d2