This commit is contained in:
Christopher Jeffrey 2012-03-20 19:30:20 -05:00
parent 24ffba0e51
commit 24bf591bd7
1 changed files with 8 additions and 8 deletions

View File

@ -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