From 24bf591bd79ac49723c7f0c391a46bc60f252aa7 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 20 Mar 2012 19:30:20 -0500 Subject: [PATCH] destdir --- Makefile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 3a46b7a..f8f2dfb 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ CC ?= gcc PREFIX ?= /usr -BINDIR ?= $(DESTDIR)$(PREFIX)/bin -MANDIR ?= $(DESTDIR)$(PREFIX)/share/man/man1 +BINDIR ?= $(PREFIX)/bin +MANDIR ?= $(PREFIX)/share/man/man1 PACKAGES = x11 xcomposite xfixes xdamage xrender LIBS = $(shell pkg-config --libs $(PACKAGES)) -lm @@ -17,14 +17,14 @@ compton: $(OBJS) $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJS) $(LIBS) install: compton - @install -Dm755 compton "$(BINDIR)"/compton - @install -Dm755 bin/settrans "$(BINDIR)"/settrans - @install -Dm644 man/compton.1 "$(MANDIR)"/compton.1 + @install -Dm755 compton "$(DESTDIR)$(BINDIR)"/compton + @install -Dm755 bin/settrans "$(DESTDIR)$(BINDIR)"/settrans + @install -Dm644 man/compton.1 "$(DESTDIR)$(MANDIR)"/compton.1 uninstall: - @rm -f "$(BINDIR)/compton" - @rm -f "$(BINDIR)/settrans" - @rm -f "$(MANDIR)/compton.1" + @rm -f "$(DESTDIR)$(BINDIR)/compton" + @rm -f "$(DESTDIR)$(BINDIR)/settrans" + @rm -f "$(DESTDIR)$(MANDIR)/compton.1" clean: @rm -f $(OBJS) compton