We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cec9b23 commit 11f2379Copy full SHA for 11f2379
Makefile
@@ -5,7 +5,8 @@ LDFLAGS += $(shell pkg-config --libs freetype2 x11 openal)
5
LDFLAGS += $(shell pkg-config --libs dbus-1)
6
LDFLAGS += -lX11 -lXft -lXrender -ltoxcore -ltoxav -ltoxdns -lopenal -pthread -lresolv -ldl -lm -lfontconfig -lv4lconvert -lvpx -lXext
7
8
-DESTDIR=/usr/local
+DESTDIR?= # empty
9
+PREFIX?= /usr/local
10
11
SRC = $(wildcard *.c png/png.c)
12
OBJ = $(SRC:.c=.o)
@@ -16,8 +17,8 @@ utox: $(OBJ)
16
17
$(CC) $(CFLAGS) -o utox $(OBJ) $(LDFLAGS)
18
19
install: utox
- mkdir -pv $(DESTDIR)/bin
20
- install -m 0755 utox $(DESTDIR)/bin
+ mkdir -pv $(DESTDIR)$(PREFIX)/bin
21
+ install -m 0755 utox $(DESTDIR)$(PREFIX)/bin
22
23
main.o: xlib/main.c xlib/keysym2ucs.c
24
0 commit comments