summaryrefslogtreecommitdiff
path: root/progs/Makefile
AgeCommit message (Collapse)Author
2009-12-01Simplify hackery added to fix AIX build.Tom Fogal
Borrow an idiom from the GNU build system which can handle `for' loops over empty lists.
2009-11-19progs: Fix quoting issue with empty set of PROGRAM_DIRS.Tom Fogal
Quotes are important to make sure the argument to test -n really is the empty string, but that requires stringifying PROGRAM_DIRS. Signed-off-by: Brian Paul <brianp@vmware.com>
2009-10-14progs/Makefile: remove extra quotingBrian Paul
This reverts part of commit 115edf24a9128b79dfa5f30482c990e2cb898357 and fixes the error: "/bin/sh: line 0: test: too many arguments".
2009-10-13Fix build when PROGRAM_DIRS is empty.Tom Fogal
SUBDIRS just takes PROGRAM_DIRS value. If PROGRAM_DIRS gets set to the empty string (as can happen when building only OSMesa), a 'for' loop will lack anything to iterate over, causing a parse error. This fixes the issue by making sure SUBDIRS is the null string when PROGRAM_DIRS is, and wrapping the for loops in if's, causing them only to execute if there are directories to iterate over.
2008-05-07Never fail `make clean'Dan Nicholson
Mostly some pedantic changes such that `make clean' always ignores errors. Also changed the top clean target to do the `touch configs/current' dance instead of realclean.
2007-05-09Tweak the shell scripting for descending into and building subdirs.Brian
In general, use this: @for dir in $(SUBDIRS) ; do \ if [ -d $$dir ] ; then \ (cd $$dir && $(MAKE)) || exit 1; \ fi \ done Basically, silently skip missing subdirs but generate an error and stop if there's a compilation or install problem. This was done inconsistantly before. In once case, a missing subdir was causing us to go into an infinte loop!
2006-06-22New 'install' targets in makefile. See bug 2372.Brian Paul
2004-08-25print current config name before building src and progsBrian Paul
2004-06-01Build fixing for FreeBSD. GNU make is installed as gmake, so make a MAKEEric Anholt
variable (defaults to "make") and use that. Use the MKDEP and MKDEP_OPTIONS more. Our shell isn't bash, so change the instances of ">& /dev/null" to a more compatible "> /dev/null 2>&1".
2004-04-14Use tcc and the emitted C code from s_fragprog_to_c.c to dynamically compileKeith Whitwell
and execute fragment programs. Very limited and experimental, but works well enough to run arbfplight.c. http://fabrice.bellard.free.fr/tcc/ Compile with 'make linux-tcc', being sure to make clean first.
2004-04-03for make clean, include tests directoryBrian Paul
2004-03-26Don't use pushd/popd.Brian Paul
2004-03-26New Makefile systemBrian Paul