|
From: <sv...@va...> - 2007-03-08 01:52:47
|
Author: sewardj Date: 2007-03-08 01:52:37 +0000 (Thu, 08 Mar 2007) New Revision: 6634 Log: Horrible hacks to make 'make dist' work properly. Previously it only worked on systems when the configure script found a usable mpicc, bizarrely. Modified: trunk/auxprogs/Makefile.am Modified: trunk/auxprogs/Makefile.am =================================================================== --- trunk/auxprogs/Makefile.am 2007-03-07 11:14:22 UTC (rev 6633) +++ trunk/auxprogs/Makefile.am 2007-03-08 01:52:37 UTC (rev 6634) @@ -105,26 +105,32 @@ endif -## And some hacks for 'make dist' +## And some hacks to keep 'make dist' happy. ## It would seem that using nodist_SOURCES is the right fix, but ## I can't figure out how to do it. ## -if BUILD_MPIWRAP_PRI #nodist_SOURCES = libmpiwrap-@VG_PLATFORM_PRI@.c +#nodist_SOURCES = libmpiwrap-@VG_PLATFORM_SEC@.c + +libmpiwrap-.c: + rm -f libmpiwrap-.c + touch libmpiwrap-.c + libmpiwrap-@VG_PLATFORM_PRI@.c: rm -f libmpiwrap-@VG_PLATFORM_PRI@.c touch libmpiwrap-@VG_PLATFORM_PRI@.c -libmpiwrap-.c: - rm -f libmpiwrap-.c - touch libmpiwrap-.c -endif -if BUILD_MPIWRAP_SEC -#nodist_SOURCES = libmpiwrap-@VG_PLATFORM_SEC@.c + +if VGP_HAVE_SECONDARY libmpiwrap-@VG_PLATFORM_SEC@.c: rm -f libmpiwrap-@VG_PLATFORM_SEC@.c touch libmpiwrap-@VG_PLATFORM_SEC@.c endif +## cleanery +clean-local: + rm -f libmpiwrap-.c \ + libmpiwrap-@VG_PLATFORM_PRI@.c libmpiwrap-@VG_PLATFORM_SEC@.c + # #---------------------------------------------------------- |