Opened 11 years ago

Last modified 11 years ago

#2345 new defect

Make for directories without makefiles

Reported by: warmerdam Owned by: mlucas
Priority: low Milestone:
Component: Packaging Version:
Severity: minor Keywords:
Cc:

Description

I get lots of messages about attempting a make in directories with no target, like:

make[3]: Entering directory `/home/warmerdam/pkg/ossim-trunk/ossim/src/ossim/video'
make[3]: *** No rule to make target `all'.  Stop.

While these don't cause the build to fail, they are confusing when investigating a real problem. Changing this:

DIRECTORIES=$(wildcard *)

to this:

DIRECTORIES=$(dir $(wildcard */Makefile))

in the Makefile. Perhaps this would be worth incorporating.

Change History (1)

comment:1 by warmerdam, 11 years ago

The above change might also mean the following tests can be simplified:

		if [ -d $$d ]; then \
			if [ "$$d" != "CVS" -a "$$d" != "."  -a "$$d" != "test_endian"  -a "$$d" != "test" -a "$$d" != "generator" -a "$$d" != ".obj" ]; then \
				(cd $$d; $(MAKE) all) ; \
			fi ; \
		fi ; \
Note: See TracTickets for help on using tickets.