16 lines
293 B
Makefile
16 lines
293 B
Makefile
BINARY=renga
|
|
CPP=g++
|
|
HOST=192.168.122.254
|
|
|
|
all: build
|
|
|
|
build:
|
|
$(CPP) src/main.cpp -o $(BINARY)
|
|
|
|
run:
|
|
@echo "tranferring over all files..."
|
|
@scp -r ./* user@$(HOST):~/dev
|
|
@echo "executing on remote host..."
|
|
ssh user@$(HOST) "cd dev;echo '### compiling';make;echo '### running';./renga"
|
|
|
|
|