From 3237855ae8604fb19d058eef2797c850b37f5596 Mon Sep 17 00:00:00 2001 From: Sam Moore Date: Mon, 18 Feb 2013 01:24:34 +0800 Subject: [PATCH] Forgot Makefile --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 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 -- 2.20.1