]> git.llucax.com Git - software/posixx.git/commitdiff
Preserve installed headers timestamps
authorLeandro Lucarella <llucarella@integratech.com.ar>
Thu, 18 Sep 2008 22:41:15 +0000 (19:41 -0300)
committerLeandro Lucarella <llucarella@integratech.com.ar>
Thu, 18 Sep 2008 22:41:15 +0000 (19:41 -0300)
If timestamps are not preserved, other programs using this headers will be
rebuilt even when the headers didn't change.

doc/Makefile
src/Makefile

index 143f5e83c4b5d757e696b6e3328839067c76b9d3..62de89f769e4d9dfd79f61cde7b959a2f48764ca 100644 (file)
@@ -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:
index 0144cf1d524520bcb7bf882b21bdb64ef8bd43c8..23fde579e6615fd1788596816655e70677cd5965 100644 (file)
@@ -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