Date: Sun, 24 Jul 2011 11:18:51 +0200 From: magnum <rawsmooth@...dband.net> To: john-dev@...ts.openwall.com Subject: Re: Plugin formats "released" On 2011-07-24 10:01, JFoug wrote: > the line: > PLUGFORMATS_SRCS: sh =if [ -f *_plug.c ]; then ls *_plug.c; fi > is a no-op on gmake. However, on solaris make, it builds a list of all > *_plug.c files Maybe try this instead (together with the two other lines from our initial version), removing some of the weirdness: PLUGFORMATS_SRCS: sh =if [ -f john.c ]; then echo *_plug.c; fi Now the -f does not get several arguments but is still always true. And we use echo instead of ls. This *should* work but who knows, I recall some odd magic was needed to get it work - maybe there need to be two wildcards for some reason? I have no Solaris here, but just looking at the syntax one would think these alternative lines should work just as well: PLUGFORMATS_SRCS: sh =if true; then echo *_plug.c; fi -or- PLUGFORMATS_SRCS: sh =echo *_plug.c magnum
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.