From 8d30810410355253f6b0c168bd470d8ee2944add Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Tue, 15 Feb 2011 09:55:33 +0100 Subject: [PATCH] Preserve timestamps when installing data files Since these are not regenerated each build, it is a good idea to preserve the timestamps when installing. --- makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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$$//'`; \ -- 2.39.5