Added an install target for packaging

master
itycodes 1 week ago
parent 8156614f58
commit d968de3b58

@ -4,6 +4,8 @@ CC = gcc
CLIBS = -lwayland-client CLIBS = -lwayland-client
CFLAGS = $(CLIBS) CFLAGS = $(CLIBS)
DESTDIR ?= /usr/bin
WLR_PROTOCOL_IMPL = wlr-screencopy-protocol.c WLR_PROTOCOL_IMPL = wlr-screencopy-protocol.c
WLR_PROTOCOL_HEADER = wlr-screencopy-client-protocol.h WLR_PROTOCOL_HEADER = wlr-screencopy-client-protocol.h
@ -17,6 +19,9 @@ clean:
rm -f $(WLR_PROTOCOL_IMPL) rm -f $(WLR_PROTOCOL_IMPL)
rm -f $(WLR_PROTOCOL_HEADER) rm -f $(WLR_PROTOCOL_HEADER)
install: all
cp $(OUT) $(DESTDIR)/
$(OUT): $(WLR_PROTOCOL_IMPL) $(WLR_PROTOCOL_HEADER) $(SRC) $(OUT): $(WLR_PROTOCOL_IMPL) $(WLR_PROTOCOL_HEADER) $(SRC)
$(CC) $(WLR_PROTOCOL_IMPL) $(SRC) $(CFLAGS) -o $(OUT) $(CC) $(WLR_PROTOCOL_IMPL) $(SRC) $(CFLAGS) -o $(OUT)

Loading…
Cancel
Save