Newer
Older
BUILD_DIR = build
ZIP_FILE = $(BUILD_DIR)/ddclient-http.zip
default:
@echo 'Usage: make [zip|deploy|install|uninstall]'
mkdir -p $(BUILD_DIR)
git archive -o $(ZIP_FILE) --prefix=ddclient-http/ HEAD
scp ~/.ddclient-http shen:
scp $(ZIP_FILE) shen:d/
ssh shen unzip -o -d ~/fromsource/ ~/d/ddclient-http.zip
ssh root@shen make -C ~/fromsource/ddclient-http/ install
deploy-rasp: zip
scp ~/.ddclient-http rasp:
scp $(ZIP_FILE) rasp:d/
ssh rasp unzip -o -d ~/fromsource/ ~/d/ddclient-http.zip
ssh rasp sudo make -C ~/fromsource/ddclient-http/ install
install:
make -C src install
uninstall:
make -C src uninstall
.PHONY: zip deploy install uninstall