Index: user/09_appendix/src/Makefile =================================================================== --- user/09_appendix/src/Makefile (revision 37027) +++ user/09_appendix/src/Makefile (revision 37028) @@ -3,6 +3,9 @@ PCBRND = ../../../../src/pcb-rnd CLEANFILES=../action_details.html ../action_reference.html ../formats.html ../bridges.svg ../dialogs.html +include ../../../../Makefile.conf +include $(LIBRND_MAK) + all: $(CLEANFILES) ../action_details.html: ./action_compiler.sh ../action_src/*.html librnd_acts @@ -21,7 +24,7 @@ ./gen_formats.sh > ../formats.html ../dialogs.html: $(PCBRND) ./gen_dialogs.sh ./dialog_extra.awk - ./gen_dialogs.sh > ../dialogs.html + LIBRND_LIBDIR="$(LIBRND_LIBDIR)" ./gen_dialogs.sh > ../dialogs.html FORCE: Index: user/09_appendix/src/gen_dialogs.sh =================================================================== --- user/09_appendix/src/gen_dialogs.sh (revision 37027) +++ user/09_appendix/src/gen_dialogs.sh (revision 37028) @@ -2,6 +2,12 @@ trunk=../../../.. +if test -z "$LIBRND_LIBDIR" +then +# when not run from the Makefile + LIBRND_LIBDIR=`cd $trunk/doc/developer/packaging && make -f librnd_root.mk libdir` +fi + # exceptions dlgtbl=' BEGIN { @@ -40,7 +46,7 @@ dlgextra="`cat dialog_extra.awk`" -. $trunk/util/devhelpers/list_dialogs.sh +. $LIBRND_LIBDIR/devhelpers/list_dialogs.sh list_dlgs $trunk/src/*.c $trunk/src_plugins/*/*.c | gen_html