reorganize tree
This commit is contained in:
parent
a353f5bc4b
commit
8f4eafaf79
10
Makefile
10
Makefile
|
@ -6,19 +6,17 @@ PREFIX = /usr
|
||||||
MANDIR = $(PREFIX)/share/man/man1
|
MANDIR = $(PREFIX)/share/man/man1
|
||||||
OBJS = compton.o
|
OBJS = compton.o
|
||||||
|
|
||||||
.c.o:
|
%.o: src/%.c src/%.h
|
||||||
$(CC) $(CFLAGS) $(INCS) -c $*.c
|
$(CC) $(CFLAGS) $(INCS) -c src/$*.c
|
||||||
|
|
||||||
compton: $(OBJS)
|
compton: $(OBJS)
|
||||||
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
|
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
|
||||||
|
|
||||||
$(OBJS): compton.h
|
|
||||||
|
|
||||||
install: compton
|
install: compton
|
||||||
@cp -t $(PREFIX)/bin compton
|
@cp -t $(PREFIX)/bin compton
|
||||||
@[ -d "$(MANDIR)" ] \
|
@[ -d "$(MANDIR)" ] \
|
||||||
&& cp -t "$(MANDIR)" compton.1
|
&& cp -t "$(MANDIR)" man/compton.1
|
||||||
@cp -t $(PREFIX)/bin settrans
|
@cp -t $(PREFIX)/bin bin/settrans
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
@rm -f $(PREFIX)/bin/compton
|
@rm -f $(PREFIX)/bin/compton
|
||||||
|
|
Loading…
Reference in New Issue