From: Hans de Goede Date: Tue, 15 Feb 2011 08:55:33 +0000 (+0100) Subject: Preserve timestamps when installing data files X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8d30810410355253f6b0c168bd470d8ee2944add;p=quix0rs-blobwars.git Preserve timestamps when installing data files Since these are not regenerated each build, it is a good idea to preserve the timestamps when installing. --- diff --git a/makefile b/makefile index 5c189bb..c59443c 100755 --- 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$$//'`; \