From: Sam Moore Date: Sun, 17 Feb 2013 17:24:34 +0000 (+0800) Subject: Forgot Makefile X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=3237855ae8604fb19d058eef2797c850b37f5596;p=matches%2Fswarm.git Forgot Makefile --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..af02dee --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for swarm + +BIN = swarm +INSTALL_DIR = /usr/bin +MAN_PATH=/usr/share/man/man1 + +install : + make -C src + mv src/$(BIN) $(INSTALL_DIR)/$(BIN) + cp doc/swarm.1 $(MAN_PATH)/swarm.1 + gzip $(MAN_PATH)/swarm.1 + groff -man -Tascii doc/swarm.1 > doc/swarm.1.txt + @#man2html -title 'swarm' doc/swarm.1.txt doc/swarm.1.html + + + +uninstall : + rm $(INSTALL_DIR)/$(BIN) + rm $(MAN_PATH)/swarm.1.gz +clean : + make -C src clean