Subject: trouble generating Makefile from Makefile.{am,in}
To: None <tech-pkg@netbsd.org>
From: Joe Reed <jnr@cwru.edu>
List: tech-pkg
Date: 06/08/2003 23:30:05
hello,

the software i'm packaging use Auto{conf,make}.  As such, I have followed the 
directions set forth in Packages.txt for using those tools. however i run 
into a problem in the subdirectories of ${WRKSRC}.  some of the necessary 
targets in ${WRKSRC}/subdir/Makefile.in are not generated into 
${WRKSRC}/subdir/Makefile.  moreover, they are no longer in Makefile.in after 
a `make configure`

for example:

$ make extract
$ cd work.bork/kapital-1.1.030606/libofx/
Makefile.in:ofx_x11.moc: $(srcdir)/ofx_x11.h
Makefile.in:    $(MOC) $(srcdir)/ofx_x11.h -o ofx_x11.moc
Makefile.in:ofx_qws.moc: $(srcdir)/ofx_qws.h
Makefile.in:    $(MOC) $(srcdir)/ofx_qws.h -o ofx_qws.moc
Makefile.in:    -rm -f  ofx_x11.moc ofx_qws.moc
Makefile.in:libofx_la.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/ofx.cpp 
$(srcdir)/ofxsgml.cpp  ofx_x11.moc ofx_qws.moc
Makefile.in:ofx.lo: ofx_x11.moc ofx_qws.moc
Makefile.in:ofx.o: ofx_x11.moc ofx_qws.moc
ofx.cpp:#include "ofx_x11.moc"
ofx.cpp:#include "ofx_qws.moc"
Makefile.in:ofx_x11.moc: $(srcdir)/ofx_x11.h
Makefile.in:    $(MOC) $(srcdir)/ofx_x11.h -o ofx_x11.moc
Makefile.in:ofx_qws.moc: $(srcdir)/ofx_qws.h
Makefile.in:    $(MOC) $(srcdir)/ofx_qws.h -o ofx_qws.moc
Makefile.in:    -rm -f  ofx_x11.moc ofx_qws.moc
Makefile.in:libofx_la.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/ofx.cpp 
$(srcdir)/ofxsgml.cpp  ofx_x11.moc ofx_qws.moc
Makefile.in:ofx.lo: ofx_x11.moc ofx_qws.moc
Makefile.in:ofx.o: ofx_x11.moc ofx_qws.moc
$ cd ../../.. && make configure
$ cd work.bork/kapital-1.1.030606/libofx/
$ grep moc Makefile*
Makefile:MOC = /usr/X11R6/qt3/bin/moc
$

What happened to those targets defined in the origional Makefile.in ?!?

any idea?  thanks in advance,

--joe