Following the suggestions in the manual, I create a rule like

GNUmakefile: GNUmakefile.in $(top_builddir)/config.status
        cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status

to automatically rebuild the makefiles. The above won't work in a
subdirectory, so how about

GNUmakefile: GNUmakefile.in $(top_builddir)/config.status
        CONFIG_FILES=$@ CONFIG_HEADERS= $(top_builddir)/config.status

That works okay as far as re-creating the makefile is concerned, but for
some reason config.status also recreates all AC_LINK_FILES at that time
(why?), which fails:

$ CONFIG_FILES=GNUmakefile CONFIG_HEADERS= ../../config.status
creating GNUmakefile
linking ./src/backend/port/dynloader/linux.c to src/backend/port/dynloader.c
configure: error: ./src/backend/port/dynloader/linux.c: File not found

Okay, so maybe I could do

GNUmakefile: GNUmakefile.in $(top_builddir)/config.status                         
        dir=`pwd` && cd $(top_builddir) && \
          CONFIG_FILES=$$dir/$@ CONFIG_HEADERS= ./config.status

but it's already ugly as it is. Is this addressed in the development
version?


-- 
Peter Eisentraut                  Sernanders v�g 10:115
[EMAIL PROTECTED]                   75262 Uppsala
http://yi.org/peter-e/            Sweden



Reply via email to