From 426c61ab41ce4bb42ca205239e421bb1399e6b3d Mon Sep 17 00:00:00 2001 From: sdcc-builder Date: Sat, 20 Aug 2005 17:28:56 +0000 Subject: [PATCH] cp on sparc-solaris (SunOS) does not support -u option git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3862 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- device/lib/Makefile.in | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/device/lib/Makefile.in b/device/lib/Makefile.in index 7465987a..81449e3b 100644 --- a/device/lib/Makefile.in +++ b/device/lib/Makefile.in @@ -12,6 +12,12 @@ CPP = @CPP@ INSTALL = @INSTALL@ CP = @CP@ +ifeq ($(shell uname -s),SunOS) +CP_U = $(CP) +else +CP_U = $(CP) -p +endif + PRJDIR = ../.. INCDIR = $(PRJDIR)/device/include ifndef PORTINCDIR @@ -273,8 +279,8 @@ clean_intermediate-pic16: # Compiling and installing everything and runing test # --------------------------------------------------- install: all installdirs - cp -r -u $(BUILDDIR)/* $(sdcc_libdir) - cp -r -u ds390 ds400 gbz80 z80 hc08 *.c $(sdcc_libdir)/src + $(CP_U) -r $(BUILDDIR)/* $(sdcc_libdir) + $(CP_U) -r ds390 ds400 gbz80 z80 hc08 *.c $(sdcc_libdir)/src rm -r `find $(sdcc_libdir)/src -name '*.rel' -or -name '*.dump*' -or -name '*.sym' -or -name '*.o' -or -name '*.lst' -or -name '*.asm' -or -name 'CVS'` # Deleting all the installed files -- 2.30.2