Skip to content
Snippets Groups Projects
Commit 7b8c4e61 authored by Mark Tearle's avatar Mark Tearle Committed by Mark Tearle
Browse files

Add client and overall install target

parent 0a6d77bf
No related merge requests found
.PHONY: all clean .PHONY: all clean install
all: all:
@make -C cokebank_sqlite all @make -C cokebank_sqlite all
...@@ -13,3 +13,7 @@ clean: ...@@ -13,3 +13,7 @@ clean:
@make -C server clean @make -C server clean
@make -C client clean @make -C client clean
install:
@make -C server install
@make -C client install
# OpenDispense 2
#
INSTALLDIR := /usr/local/opendispense2
CFLAGS := -Wall -Werror -g -std=gnu99 CFLAGS := -Wall -Werror -g -std=gnu99
LDFLAGS := -g -lncurses LDFLAGS := -g -lncurses
# -lssl # -lssl
...@@ -15,6 +18,10 @@ all: $(BIN) ...@@ -15,6 +18,10 @@ all: $(BIN)
clean: clean:
$(RM) $(BIN) $(OBJ) $(DEPFILES) $(RM) $(BIN) $(OBJ) $(DEPFILES)
install: $(BIN)
mkdir -p $(INSTALLDIR)
cp $(BIN) $(INSTALLDIR)
$(BIN): $(OBJ) $(BIN): $(OBJ)
$(CC) -o $(BIN) $(OBJ) $(LDFLAGS) $(CC) -o $(BIN) $(OBJ) $(LDFLAGS)
# chown root $(BIN) # chown root $(BIN)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment