clean makefile, add transset script

This commit is contained in:
Christopher Jeffrey
2011-12-07 12:35:22 -06:00
parent cc7adcd175
commit 48e0eccbbc
2 changed files with 85 additions and 10 deletions

View File

@ -1,11 +1,10 @@
PACKAGES = x11 xcomposite xfixes xdamage xrender
LIBS = `pkg-config --libs ${PACKAGES}` -lm
INCS = `pkg-config --cflags ${PACKAGES}`
LIBS = `pkg-config --libs $(PACKAGES)` -lm
INCS = `pkg-config --cflags $(PACKAGES)`
CFLAGS = -Wall
PREFIX = /usr/local
MANDIR = ${PREFIX}/share/man/man1
OBJS=compton.o
MANDIR = $(PREFIX)/share/man/man1
OBJS = compton.o
.c.o:
$(CC) $(CFLAGS) $(INCS) -c $*.c
@ -16,13 +15,13 @@ compton: $(OBJS)
$(OBJS): compton.h
install: compton
@cp -t ${PREFIX}/bin compton
@[ -d "${MANDIR}" ] \
&& cp -t "${MANDIR}" compton.1
@cp -t $(PREFIX)/bin compton
@[ -d "$(MANDIR)" ] \
&& cp -t "$(MANDIR)" compton.1
uninstall:
@rm -f ${PREFIX}/bin/compton
@rm -f ${MANDIR}/compton.1
@rm -f $(PREFIX)/bin/compton
@rm -f $(MANDIR)/compton.1
clean:
rm -f $(OBJS) compton