mirror of
https://github.com/yshui/picom.git
synced 2024-11-25 14:06:08 -05:00
destdir
This commit is contained in:
parent
24ffba0e51
commit
24bf591bd7
1 changed files with 8 additions and 8 deletions
16
Makefile
16
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue