make(1) question

Mikhail Teterin mi+mx at aldan.algebra.com
Wed Apr 21 12:45:45 PDT 2004


Hello!

How can I describe creation of a non-existing file without full name --
by suffix only? For example, the following example:

	%.txt:
		@echo $*

works with gmake:

	% gmake SayIt.txt
	SayIt

but not with BSD make:

	% make SayIt.txt
	make: don't know how to make SayIt.txt. Stop

Any clues? Thanks!

	-mi



More information about the freebsd-questions mailing list