Forgot Makefile
authorSam Moore <[email protected]>
Sun, 17 Feb 2013 17:24:34 +0000 (01:24 +0800)
committerSam Moore <[email protected]>
Sun, 17 Feb 2013 17:24:34 +0000 (01:24 +0800)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
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

UCC git Repository :: git.ucc.asn.au