[Ocfs2-tools-commits] manish commits r264 - trunk/ocfs2tool

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Mon Sep 27 01:52:39 CDT 2004


Author: manish
Date: 2004-09-27 01:52:37 -0500 (Mon, 27 Sep 2004)
New Revision: 264

Modified:
   trunk/ocfs2tool/Makefile
Log:
Attempt at install logic


Modified: trunk/ocfs2tool/Makefile
===================================================================
--- trunk/ocfs2tool/Makefile	2004-09-27 06:41:33 UTC (rev 263)
+++ trunk/ocfs2tool/Makefile	2004-09-27 06:52:37 UTC (rev 264)
@@ -38,8 +38,17 @@
 
 MANS = ocfs2tool.8
 
+SBIN_EXTRA = ocfs2tool
+
 LIBRARIES = ocfs2module.so
 
+PYLIB = $(LIBRARIES) main.py guiutil.py process.py general.py nodemap.py \
+	bitmap.py browser.py format.py
+
+INSTALL_RULES = install-pylib
+
+CLEAN_RULES = gen-clean
+
 DIST_FILES = $(CFILES) $(HFILES) ocfs2tool ocfsmarshal.list \
 	cellmap.defs cellmap.override ocfs2tool.8.in
 
@@ -67,4 +76,13 @@
 ocfs2module.so: $(OBJS)
 	$(LINK) -shared $(LIBOCFS2_LIBS) $(COM_ERR_LIBS) $(GTK_LIBS)
 
+install-pylib:
+	$(SHELL) $(TOPDIR)/mkinstalldirs $(DESTDIR)$(pyexecdir)/ocfs2tool
+	for f in $(PYLIB); do \
+	  $(INSTALL_DATA) $$f $(DESTDIR)$(pyexecdir)/ocfs2tool/$$f; \
+	done
+
+gen-clean:
+	rm -f ocfsmarshal.c ocfsmarshal.h cellmap.c
+
 include $(TOPDIR)/Postamble.make



More information about the Ocfs2-tools-commits mailing list