Commit 44db1550 authored by Yuanle Song's avatar Yuanle Song
Browse files

update Makefile: add 'make deploy', remove 'make build'

parent 4d1e144b
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
build: zip
BUILD_DIR = build
ZIP_FILE = $(BUILD_DIR)/ddclient-http.zip

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