Skip to content

Commit

Permalink
Add client and overall install target
Browse files Browse the repository at this point in the history
  • Loading branch information
mtearle committed Dec 15, 2014
1 parent 0a6d77b commit 7b8c4e6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

.PHONY: all clean
.PHONY: all clean install

all:
@make -C cokebank_sqlite all
Expand All @@ -13,3 +13,7 @@ clean:
@make -C server clean
@make -C client clean

install:
@make -C server install
@make -C client install

7 changes: 7 additions & 0 deletions src/client/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# OpenDispense 2
#

INSTALLDIR := /usr/local/opendispense2
CFLAGS := -Wall -Werror -g -std=gnu99
LDFLAGS := -g -lncurses
# -lssl
Expand All @@ -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)
Expand Down

0 comments on commit 7b8c4e6

Please sign in to comment.