From ac5d65b924885594c903622777fc200d7d5ad37a Mon Sep 17 00:00:00 2001 From: Bjorn Andersson Date: Sat, 10 Feb 2007 17:29:19 +0000 Subject: [PATCH] install and uninstall in makefile --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Makefile b/Makefile index b17ee32..51b9d4c 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,24 @@ +PREFIX=/usr/local + +INSTALL=/usr/bin/install +INSTALL_FLAGS= -S + +RM=rm +RM_FLAGS=-f all: @(cd src; make all) +install: all + $(INSTALL) $(INSTALL_FLAGS) bin/iodine $(PREFIX)/sbin/iodine + $(INSTALL) $(INSTALL_FLAGS) bin/iodined $(PREFIX)/sbin/iodined + $(INSTALL) $(INSTALL_FLAGS) man/iodine.8 $(PREFIX)/man/man8/iodine.8 + +uninstall: + $(RM) $(RM_FLAGS) $(PREFIX)/sbin/iodine + $(RM) $(RM_FLAGS) $(PREFIX)/sbin/iodined + $(RM) $(RM_FLAGS) $(PREFIX)/man/man8/iodine.8 + test: all @(cd tests; make all)