From eb9fbf244edddf5f7d380e2f0844782807bd935b Mon Sep 17 00:00:00 2001 From: Christopher Meng Date: Sun, 25 Aug 2013 10:32:27 -0400 Subject: [PATCH] Preserve filesystem timestamps during "make install". A good idea regardless, and recommended by the Fedora and Debian packaging guidelines. From debian-policy: The rationale is that there is some information conveyed by knowing the age of the file, for example, you could recognize that some documentation is very old by looking at the modification time, so it would be nice if the modification time of the upstream source would be preserved. It should also help prevent unnecessary backup churn after upgrades. Signed-off-by: Christopher Meng Reviewed-by: Zoran Zaric Tested-by: Zoran Zaric [rlb@defaultvalue.org: adjust commit message] Reviewed-by: Rob Browning --- Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 97e2b72..d8686ff 100644 --- a/Makefile +++ b/Makefile @@ -34,23 +34,23 @@ install: all $(INSTALL) -m 0644 \ Documentation/*.html \ $(DOCDIR) - $(INSTALL) -m 0755 bup $(BINDIR) - $(INSTALL) -m 0755 \ + $(INSTALL) -pm 0755 bup $(BINDIR) + $(INSTALL) -pm 0755 \ cmd/bup-* \ $(LIBDIR)/cmd - $(INSTALL) -m 0644 \ + $(INSTALL) -pm 0644 \ lib/bup/*.py \ $(LIBDIR)/bup - $(INSTALL) -m 0755 \ + $(INSTALL) -pm 0755 \ lib/bup/*$(SOEXT) \ $(LIBDIR)/bup - $(INSTALL) -m 0644 \ + $(INSTALL) -pm 0644 \ lib/tornado/*.py \ $(LIBDIR)/tornado - $(INSTALL) -m 0644 \ + $(INSTALL) -pm 0644 \ lib/web/static/* \ $(LIBDIR)/web/static/ - $(INSTALL) -m 0644 \ + $(INSTALL) -pm 0644 \ lib/web/*.html \ $(LIBDIR)/web/ %/all: -- 2.39.2