Hi Kristis, Perhaps you could use the following so that the Makefile knows what the OS is:
>>> ifeq (FOO,$(shell uname -o)) IS_MAC_OS_X=1 endif [...] make_directory := install $(if $(IS_MAC_OS_X),,-p) -d -o $(user) -g $(group) -m 755 <<< where FOO is what 'uname -o' returns on OS X, assuming of course it is unique to OS X. Portability may be an issue - I gather from the info page for GNU make that 'ifeq' is a GNU-specific thing, but I'm not sure about the $(if). I think the 'ifeq' could be replaced with: IS_MAC_OS_X=$(filter FOO,$(shell uname -o)) if $(if) is more portable. Regards, David ---------------------------------------------- David O'Shea Senior Engineer DSpace Pty Ltd (an EMS Technologies Company) [EMAIL PROTECTED] www.emssatcom.com T: +61 8 8260 8118 > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Kristis Makris > Sent: Wednesday, 7 May 2008 1:16 PM > To: Robert Egglestone > Cc: [EMAIL PROTECTED]; [email protected] > Subject: Re: [scmbug-users] JIRA status > > > Thanks for the patch: > > > > http://bugzilla.mkgnu.net/show_bug.cgi?id=1170 > > > > Is there some way the Makefile can know we are running on > Mac OS X so we > > don't use "-p". Not using it for all systems sounds limiting. > > Mmmm, we may have to break down and use AC_CANONICAL_SYSTEM in > configure.in, which leads to "other issues" (automake battles) > _______________________________________________ scmbug-users mailing list [email protected] http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users
