[Pkg-mono-svn-commits] rev 336 - mono-nethostmanager/src

Pablo Fischer pabl0-guest@quantz.debian.org
Tue, 24 Feb 2004 19:23:39 +0100


Author: pabl0-guest
Date: 2004-02-24 19:23:38 +0100 (Tue, 24 Feb 2004)
New Revision: 336

Modified:
   mono-nethostmanager/src/Makefile
Log:
* Added the install option for the man page of nethostmanager
* Fixed the install dirs, added DESTDIR, I was using just prefix, and that was a BIG error :)
* Added the uninstall option for the man page
* Added more ENV vars for the Makefile


Modified: mono-nethostmanager/src/Makefile
===================================================================
--- mono-nethostmanager/src/Makefile	2004-02-24 18:07:56 UTC (rev 335)
+++ mono-nethostmanager/src/Makefile	2004-02-24 18:23:38 UTC (rev 336)
@@ -1,8 +1,22 @@
+#Makefile for mono-nethostmanager
+
+SHELL = /bin/sh
 MCS = mcs
-INSTALL = /usr/bin/install
+
+INSTALL = /usr/bin/install -c
+INSTALL_PROGRAM = ${INSTALL}
+INSTALL_DATA = ${INSTALL} -m 644
+INSTALL_DIR = ${INSTALL} -d
+
+srcdir = .
 prefix = /usr
+top_srcdir = ..
+mandir = ${prefix}/share/man
+bindir = ${prefix}/bin
+man1dir = $(mandir)/man1
+
+
 NAME = nethostmanager
- 
 SOURCES = Manager.cs VirtualSchema.cs
  
 all: nethostmanager.exe
@@ -10,11 +24,14 @@
 nethostmanager.exe: $(SOURCES) 
 	$(MCS) -o $@ $(SOURCES) 
 
-install: nethostmanager.exe
-	$(INSTALL) -m 755 $(NAME).exe $(prefix)/bin/$(NAME).exe
+install: nethostmanager.exe	
+	$(INSTALL) -m 755 $(NAME).exe $(DESTDIR)$(bindir)/$(NAME).exe
+	$(INSTALL_DIR) $(DESTDIR)$(man1dir)
+	$(INSTALL_DATA) doc/nethostmanager.1 $(DESTDIR)$(man1dir)/nethostmanager.1
  
 uninstall:
-	rm -Rf $(prefix)/bin/$(NAME).exe
+	rm -Rf $(DESTDIR)/bin/$(NAME).exe
+	rm -Rf $(DESTDIR)/$(man1dir)/nethostmanager.1 
  
 clean:
 	rm -Rf $(NAME).exe *.bak *~