From: Leandro Lucarella Date: Thu, 18 Sep 2008 22:41:15 +0000 (-0300) Subject: Preserve installed headers timestamps X-Git-Url: https://git.llucax.com/software/posixx.git/commitdiff_plain/584107ebdc413a0f2a27d24055982265798ca21a?hp=b6102addd5203e385780c059185b5fddc7477afa Preserve installed headers timestamps If timestamps are not preserved, other programs using this headers will be rebuilt even when the headers didn't change. --- 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