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 CC ?= gcc
PREFIX ?= /usr PREFIX ?= /usr
BINDIR ?= $(DESTDIR)$(PREFIX)/bin BINDIR ?= $(PREFIX)/bin
MANDIR ?= $(DESTDIR)$(PREFIX)/share/man/man1 MANDIR ?= $(PREFIX)/share/man/man1
PACKAGES = x11 xcomposite xfixes xdamage xrender PACKAGES = x11 xcomposite xfixes xdamage xrender
LIBS = $(shell pkg-config --libs $(PACKAGES)) -lm LIBS = $(shell pkg-config --libs $(PACKAGES)) -lm
@ -17,14 +17,14 @@ compton: $(OBJS)
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJS) $(LIBS) $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
install: compton install: compton
@install -Dm755 compton "$(BINDIR)"/compton @install -Dm755 compton "$(DESTDIR)$(BINDIR)"/compton
@install -Dm755 bin/settrans "$(BINDIR)"/settrans @install -Dm755 bin/settrans "$(DESTDIR)$(BINDIR)"/settrans
@install -Dm644 man/compton.1 "$(MANDIR)"/compton.1 @install -Dm644 man/compton.1 "$(DESTDIR)$(MANDIR)"/compton.1
uninstall: uninstall:
@rm -f "$(BINDIR)/compton" @rm -f "$(DESTDIR)$(BINDIR)/compton"
@rm -f "$(BINDIR)/settrans" @rm -f "$(DESTDIR)$(BINDIR)/settrans"
@rm -f "$(MANDIR)/compton.1" @rm -f "$(DESTDIR)$(MANDIR)/compton.1"
clean: clean:
@rm -f $(OBJS) compton @rm -f $(OBJS) compton