1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2024-11-18 13:55:36 -05:00

reorganize tree

This commit is contained in:
Christopher Jeffrey 2012-02-27 01:42:38 -06:00
parent a353f5bc4b
commit 8f4eafaf79
5 changed files with 4 additions and 6 deletions

View file

@ -6,19 +6,17 @@ PREFIX = /usr
MANDIR = $(PREFIX)/share/man/man1
OBJS = compton.o
.c.o:
$(CC) $(CFLAGS) $(INCS) -c $*.c
%.o: src/%.c src/%.h
$(CC) $(CFLAGS) $(INCS) -c src/$*.c
compton: $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
$(OBJS): compton.h
install: compton
@cp -t $(PREFIX)/bin compton
@[ -d "$(MANDIR)" ] \
&& cp -t "$(MANDIR)" compton.1
@cp -t $(PREFIX)/bin settrans
&& cp -t "$(MANDIR)" man/compton.1
@cp -t $(PREFIX)/bin bin/settrans
uninstall:
@rm -f $(PREFIX)/bin/compton