]> git.mxchange.org Git - quix0rs-blobwars.git/commitdiff
Preserve timestamps when installing data files
authorHans de Goede <hdegoede@redhat.com>
Tue, 15 Feb 2011 08:55:33 +0000 (09:55 +0100)
committerHans de Goede <hdegoede@redhat.com>
Tue, 15 Feb 2011 08:55:33 +0000 (09:55 +0100)
Since these are not regenerated each build, it is a good idea to preserve the
timestamps when installing.

makefile

index 5c189bbc315d4b151e750105c11bbd2c6a0f847f..c59443cadbdb7c1dc8a51f22e08c5068cd5beccf 100755 (executable)
--- a/makefile
+++ b/makefile
@@ -116,12 +116,12 @@ install: $(ALL)
 ifeq ($(USEPAK), 1)
        install -m 644 $(PAKNAME) $(DESTDIR)$(DATADIR)$(PAKNAME)
 else
-       cp -r $(DATA) $(DESTDIR)$(DATADIR)
+       cp -pr $(DATA) $(DESTDIR)$(DATADIR)
 endif
-       cp $(ICONS)$(PROG).png $(DESTDIR)$(ICONDIR)32x32/apps/
-       cp $(ICONS)$(PROG)-mini.png $(DESTDIR)$(ICONDIR)16x16/apps/$(PROG).png
-       cp $(ICONS)$(PROG)-large.png $(DESTDIR)$(ICONDIR)64x64/apps/$(PROG).png
-       cp $(ICONS)$(PROG).desktop $(DESTDIR)$(DESKTOPDIR)
+       cp -p $(ICONS)$(PROG).png $(DESTDIR)$(ICONDIR)32x32/apps/
+       cp -p $(ICONS)$(PROG)-mini.png $(DESTDIR)$(ICONDIR)16x16/apps/$(PROG).png
+       cp -p $(ICONS)$(PROG)-large.png $(DESTDIR)$(ICONDIR)64x64/apps/$(PROG).png
+       cp -p $(ICONS)$(PROG).desktop $(DESTDIR)$(DESKTOPDIR)
 
        @for f in $(LOCALE_MO); do \
                lang=`echo $$f | sed -e 's/^locale\///;s/\.mo$$//'`; \