From: Mark Tearle Date: Mon, 15 Dec 2014 12:48:20 +0000 (+0000) Subject: Add client and overall install target X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=7b8c4e61950317e2f56093328b8c42c2a3c1e2e2;p=tpg%2Fopendispense2.git Add client and overall install target --- diff --git a/src/Makefile b/src/Makefile index 99ac060..7c28d52 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,5 +1,5 @@ -.PHONY: all clean +.PHONY: all clean install all: @make -C cokebank_sqlite all @@ -13,3 +13,7 @@ clean: @make -C server clean @make -C client clean +install: + @make -C server install + @make -C client install + diff --git a/src/client/Makefile b/src/client/Makefile index 8d261aa..41c23cb 100644 --- a/src/client/Makefile +++ b/src/client/Makefile @@ -1,4 +1,7 @@ +# OpenDispense 2 +# +INSTALLDIR := /usr/local/opendispense2 CFLAGS := -Wall -Werror -g -std=gnu99 LDFLAGS := -g -lncurses # -lssl @@ -15,6 +18,10 @@ all: $(BIN) clean: $(RM) $(BIN) $(OBJ) $(DEPFILES) +install: $(BIN) + mkdir -p $(INSTALLDIR) + cp $(BIN) $(INSTALLDIR) + $(BIN): $(OBJ) $(CC) -o $(BIN) $(OBJ) $(LDFLAGS) # chown root $(BIN)