[Tkabber-dev] r2048 - trunk/tkabber

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Tue Dec 31 22:00:31 MSK 2013


Author: sergei
Date: 2013-12-31 22:00:30 +0400 (Tue, 31 Dec 2013)
New Revision: 2048

Modified:
   trunk/tkabber/ChangeLog
   trunk/tkabber/Makefile
Log:
	* Makefile: Changed mkdir and cp by install where appropriate.


Modified: trunk/tkabber/ChangeLog
===================================================================
--- trunk/tkabber/ChangeLog	2013-12-31 17:37:05 UTC (rev 2047)
+++ trunk/tkabber/ChangeLog	2013-12-31 18:00:30 UTC (rev 2048)
@@ -17,6 +17,8 @@
 	  chat font linespace for the vertical space between tree branches.
 	  It isn't perfect, but works in most cases.
 
+	* Makefile: Changed mkdir and cp by install where appropriate.
+
 2013-12-30  Sergei Golovan  <sgolovan at nes.ru>
 
 	* README, doc/tkabber.html, doc/tkabber.xml: Added section which

Modified: trunk/tkabber/Makefile
===================================================================
--- trunk/tkabber/Makefile	2013-12-31 17:37:05 UTC (rev 2047)
+++ trunk/tkabber/Makefile	2013-12-31 18:00:30 UTC (rev 2048)
@@ -29,11 +29,11 @@
 install: install-bin install-doc install-examples
 
 install-bin:
-	mkdir -p $(DESTDIR)$(TKABBERDIR)
-	cp -r *.tcl $(SUBDIRS) $(DESTDIR)$(TKABBERDIR)
+	install -d $(DESTDIR)$(TKABBERDIR)
+	cp -dr --no-preserve=ownership *.tcl $(SUBDIRS) $(DESTDIR)$(TKABBERDIR)
 	chmod 755 $(DESTDIR)$(TKABBERDIR)/tkabber.tcl
 	chmod 755 $(DESTDIR)$(TKABBERDIR)/tkabber-remote.tcl
-	mkdir -p $(DESTDIR)$(BINDIR)
+	install -d $(DESTDIR)$(BINDIR)
 	echo "#!/bin/sh" >$(DESTDIR)$(BINDIR)/tkabber
 	echo "exec $(TKABBERDIR)/tkabber.tcl \"\$$@\"" >>$(DESTDIR)$(BINDIR)/tkabber
 	echo "#!/bin/sh" >$(DESTDIR)$(BINDIR)/tkabber-remote
@@ -42,11 +42,11 @@
 	chmod 755 $(DESTDIR)$(BINDIR)/tkabber-remote
 
 install-doc: doc
-	mkdir -p $(DESTDIR)$(DOCDIR)
-	cp AUTHORS COPYING ChangeLog README doc/tkabber.html $(DESTDIR)$(DOCDIR)
+	install -d $(DESTDIR)$(DOCDIR)
+	install -m 644 AUTHORS COPYING ChangeLog README doc/tkabber.html $(DESTDIR)$(DOCDIR)
 
 install-examples:
-	mkdir -p $(DESTDIR)$(DOCDIR)
-	cp -r examples $(DESTDIR)$(DOCDIR)
+	install -d $(DESTDIR)$(DOCDIR)
+	cp -dr --no-preserve=ownership examples $(DESTDIR)$(DOCDIR)
 
 .PHONY: all doc install install-bin install-doc install-examples



More information about the Tkabber-dev mailing list