From 584107ebdc413a0f2a27d24055982265798ca21a Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Thu, 18 Sep 2008 19:41:15 -0300 Subject: [PATCH] Preserve installed headers timestamps If timestamps are not preserved, other programs using this headers will be rebuilt even when the headers didn't change. --- doc/Makefile | 4 ++-- src/Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/Makefile b/doc/Makefile index 143f5e8..62de89f 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -27,13 +27,13 @@ install: install-man install-html install-man: doc $(NICE) for f in `find reference/man -type f | cut -b11-`; do \ echo " INSTALL $(prefix)/share/$$f"; \ - install -m 0644 -D reference/$$f $(prefix)/share/$$f; \ + install -p -m 0644 -D reference/$$f $(prefix)/share/$$f; \ done install-html: doc $(NICE) for f in `find reference/html -type f | cut -b11-`; do \ echo " INSTALL $(prefix)/share/doc/posixx/$$f"; \ - install -m 0644 -D reference/$$f $(prefix)/share/doc/posixx/$$f; \ + install -p -m 0644 -D reference/$$f $(prefix)/share/doc/posixx/$$f; \ done include: diff --git a/src/Makefile b/src/Makefile index 0144cf1..23fde57 100644 --- a/src/Makefile +++ b/src/Makefile @@ -23,7 +23,7 @@ all: install-headers: $(HEADERS) $(NICE) for f in $(HEADERS); do \ echo " INSTALL $(prefix)/include/$(HDRPATH)/$$f"; \ - install -m 0644 -D $$f $(prefix)/include/$(HDRPATH)/$$f; \ + install -p -m 0644 -D $$f $(prefix)/include/$(HDRPATH)/$$f; \ done install: install-headers -- 2.43.0