mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 04:29:02 -04:00
Add install/uninstall targets.
This commit is contained in:
parent
00a180c445
commit
4f126f51d3
7
Makefile
7
Makefile
@ -2,6 +2,7 @@
|
||||
|
||||
CC=gcc
|
||||
BIN=kore
|
||||
INSTALL_DIR=/usr/local/bin
|
||||
|
||||
S_SRC+= src/kore.c src/accesslog.c src/auth.c src/buf.c src/config.c \
|
||||
src/connection.c src/domain.c src/http.c src/mem.c src/module.c \
|
||||
@ -50,6 +51,12 @@ endif
|
||||
all: $(S_OBJS)
|
||||
$(CC) $(CFLAGS) $(S_OBJS) $(LDFLAGS) -o $(BIN)
|
||||
|
||||
install:
|
||||
install -m 555 $(BIN) $(INSTALL_DIR)/$(BIN)
|
||||
|
||||
uninstall:
|
||||
rm -f $(INSTALL_DIR)/$(BIN)
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user