# To subscribers of the xforms list from Angus Leeming <angus.leeming@btopenworld.com> :
On Wednesday 23 April 2003 8:59 pm, Lars Gullik Bjønnes wrote:
> Is that how you are supposed to use the BUILT_SOURCES target?
>
> I thought:
>
> BUILT_SOURCES = forms.h
>
> the forms.h: target below.
>
> include_HEADERS = forms.h
>
> and the noinst_HEADERS as indicated below.
Thanks for the feedback, Lars.
I got there too (just about ;-), having read the automake manual on
movementarian.org/devtools.
In order for things to work properly, I find that I had to change the forms.h
target to ../forms.h. Otherwise "make dist" copies across lib/include/forms.h
but not lib/forms.h and so make in the lib dir fails. Obviously, I could add
appropriate -I targets to the INCLUDE directive or modify all the .c files to
look for include/forms.h, but altering the target seems the cleanest
solution.
And it does away with the nasty "cp forms.h ../." hack.
Many thanks for all your help.
Angus
"Clean" lib/include/Makefile.am:
include $(top_srcdir)/config/common.am
include_HEADERS = ../forms.h
CLEANFILES = ../forms.h
BUILT_SOURCES = ../forms.h
noinst_HEADERS = \
AAA.h \
Basic.h \
XBasic.h \
bitmap.h \
box.h \
browser.h \
button.h \
canvas.h \
chart.h \
choice.h \
clipbd.h \
clock.h \
counter.h \
cursor.h \
dial.h \
filesys.h \
flps.h \
formbrowser.h \
frame.h \
free.h \
goodies.h \
input.h \
menu.h \
menubar.h \
popup.h \
positioner.h \
scrollbar.h \
slider.h \
tabfolder.h \
text.h \
thumbwheel.h \
timer.h \
xyplot.h \
zzz.h
../forms.h: $(noinst_HEADERS)
@rm -f $@
@for i in $(noinst_HEADERS); do \
sed "1,/crop here for forms/d" ${srcdir}/$$i >> $@; \
done
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://world.std.com/~xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/
Development: http://savannah.nongnu.org/files/?group=xforms
This archive was generated by hypermail 2b29 : Wed Apr 23 2003 - 17:40:59 EDT