Hi,
Paul Cunningham wrote me in private:
> I think the METADATA file is actually used for other things as well.
> Easy extraction of the sfw consolidation content for webpages, etc,
> comes to mind. So it may be hard to change that now.
Indeed, that would be hard. Could someone who knows about the use cases of the
METADATA comment on whether using Makefile syntax would be an alternative?
> I seem to remember that Makefile.cmd
> and Makefile.master contain stuff that look similar to what you have
> below, and that works.
GNU make is simply more relaxed about the conditional macro assignment operator
which I accidentally used where an ordinary assignment is correct:
haggis:~/Devel/sfw-src-b99-20080918/usr/src$ cat test
PROGRAM = postgres
$(PROGRAM) = test
$(PROGRAM).majver = 8.3
$(PROGRAM).minver = 3
$(PROGRAM).version = $($(PROGRAM).majver).$($(PROGRAM).minver)
VER = $(PROGRAM)-$($(PROGRAM).version)
all:
(echo $(VER))
(echo $(PROGRAM))
(echo $($(PROGRAM).version))
haggis:~/Devel/sfw-src-b99-20080918/usr/src$ gmake -f test
(echo postgres-8.3.3)
postgres-8.3.3
(echo postgres)
postgres
(echo 8.3.3)
8.3.3
haggis:~/Devel/sfw-src-b99-20080918/usr/src$ make -f test
(echo postgres-8.3.3)
postgres-8.3.3
(echo postgres)
postgres
(echo 8.3.3)
8.3.3
So technically it looks like we could use make includes rather than METADATA
files.
Nils