implemented interpreter; setup code dir; added code sync to Makefile
This commit is contained in:
8
Makefile
8
Makefile
@ -6,6 +6,7 @@ MANPAGE := $(BIN).$(MANSECTION)
|
||||
SRCS := $(wildcard *.cpp)
|
||||
OBJS := $(subst .cpp,.o,$(SRCS))
|
||||
DEPS := $(subst .cpp,.d,$(SRCS))
|
||||
CODE := $(wildcard code/*.txt)
|
||||
|
||||
CXX ?= g++
|
||||
PKG_CONFIG ?= pkg-config
|
||||
@ -29,9 +30,9 @@ endif
|
||||
|
||||
LDLIBS := -lm -lpthread -lcurl -lsclogging
|
||||
|
||||
.PHONY: all clean install
|
||||
.PHONY: all sync clean install
|
||||
|
||||
all: $(BIN)
|
||||
all: $(BIN) sync
|
||||
|
||||
$(BIN): $(OBJS) $(DEPS)
|
||||
$(CXX) $(OBJS) $(LDFLAGS) $(LDLIBS) -o $(BIN)
|
||||
@ -43,6 +44,9 @@ $(BIN): $(OBJS) $(DEPS)
|
||||
|
||||
%.d: ;
|
||||
|
||||
sync: $(CODE)
|
||||
rsync -av code/ pi@www.swiftcoder.nl:/var/www/html/cpp1/
|
||||
|
||||
clean:
|
||||
$(RM) $(OBJS) $(DEPS) $(BIN)
|
||||
|
||||
|
Reference in New Issue
Block a user