mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-12-22 12:23:56 +01:00
Out of source build
This commit is contained in:
parent
c93e7828c5
commit
2ffcf25492
18
Makefile.am
18
Makefile.am
@ -82,17 +82,20 @@ htmldir_loc = share/doc/qmckl/html
|
|||||||
textdir_loc = share/doc/qmckl/text
|
textdir_loc = share/doc/qmckl/text
|
||||||
htmlize_el = $(htmldir_loc)/htmlize.el
|
htmlize_el = $(htmldir_loc)/htmlize.el
|
||||||
dist_html_DATA = $(HTML_FILES) \
|
dist_html_DATA = $(HTML_FILES) \
|
||||||
share/doc/qmckl/html/qmckl.css \
|
$(htmldir_loc)/qmckl.css \
|
||||||
share/doc/qmckl/html/index.html
|
$(htmldir_loc)/index.html
|
||||||
|
|
||||||
dist_text_DATA = $(TEXT_FILES)
|
dist_text_DATA = $(TEXT_FILES)
|
||||||
|
|
||||||
|
|
||||||
html-local: $(dist_html_DATA)
|
html-local: $(htmlize_el) $(dist_html_DATA)
|
||||||
text: $(dist_text_DATA)
|
text: $(htmlize_el) $(dist_text_DATA)
|
||||||
doc: html text
|
doc: html text
|
||||||
|
|
||||||
|
|
||||||
|
$(htmldir_loc)/qmckl.css: $(htmlize_el)
|
||||||
|
$(MKDIR_P) $(htmldir_loc) $(textdir_loc)
|
||||||
|
cp -f $(top_srcdir)/$(htmldir_loc)/qmckl.css $(builddir)/$(htmldir_loc)/qmckl.css
|
||||||
|
|
||||||
if QMCKL_DEVEL
|
if QMCKL_DEVEL
|
||||||
|
|
||||||
@ -102,9 +105,9 @@ endif
|
|||||||
|
|
||||||
EXTRA_DIST += $(ORG_FILES) $(TANGLED_FILES) $(EXPORTED_FILES) $(test_qmckl_f)
|
EXTRA_DIST += $(ORG_FILES) $(TANGLED_FILES) $(EXPORTED_FILES) $(test_qmckl_f)
|
||||||
|
|
||||||
BUILT_SOURCES = $(C_FILES) $(F_FILES) $(FH_FUNC_FILES) $(FH_TYPE_FILES) $(H_FUNC_FILES) $(H_TYPE_FILES) $(H_PRIVATE_FUNC_FILES) $(H_PRIVATE_TYPE_FILES) $(src_qmckl_f) $(test_qmckl_f) $(qmckl_h) $(header_tests)
|
BUILT_SOURCES = $(C_FILES) $(F_FILES) $(FH_FUNC_FILES) $(FH_TYPE_FILES) $(H_FUNC_FILES) $(H_TYPE_FILES) $(H_PRIVATE_FUNC_FILES) $(H_PRIVATE_TYPE_FILES) $(src_qmckl_f) $(test_qmckl_f) $(qmckl_h) $(header_tests) $(htmlize_el)
|
||||||
|
|
||||||
CLEANFILES += $(BUILT_SOURCES) $(C_TEST_FILES) $(F_TEST_FILES) $(TANGLED_FILES) $(C_TEST_FILES) $(F_TEST_FILES) $(src_qmckl_f) $(test_qmckl_f) $(qmckl_h) $(HTML_FILES) $(TEXT_FILES) $(EXPORTED_FILES) $(header_tests)
|
CLEANFILES += $(BUILT_SOURCES) $(C_TEST_FILES) $(F_TEST_FILES) $(TANGLED_FILES) $(C_TEST_FILES) $(F_TEST_FILES) $(src_qmckl_f) $(test_qmckl_f) $(qmckl_h) $(HTML_FILES) $(TEXT_FILES) $(EXPORTED_FILES) $(header_tests) $(htmlize_el)
|
||||||
|
|
||||||
EXTRA_DIST += \
|
EXTRA_DIST += \
|
||||||
tools/build_doc.sh \
|
tools/build_doc.sh \
|
||||||
@ -152,8 +155,7 @@ $(src_qmckl_f): $(FH_FUNC_FILES) $(FH_TYPE_FILES)
|
|||||||
$(cat_h_verbose)top_builddir=$(abs_top_builddir) srcdir=$(abs_srcdir) src_qmckl_f=$(src_qmckl_f) $(srcdir)/tools/build_qmckl_f.sh
|
$(cat_h_verbose)top_builddir=$(abs_top_builddir) srcdir=$(abs_srcdir) src_qmckl_f=$(src_qmckl_f) $(srcdir)/tools/build_qmckl_f.sh
|
||||||
|
|
||||||
$(htmlize_el):
|
$(htmlize_el):
|
||||||
$(MKDIR_P) $(htmldir_loc)
|
$(MKDIR_P) $(htmldir_loc) $(textdir_loc)
|
||||||
$(MKDIR_P) $(textdir_loc)
|
|
||||||
abs_srcdir=$(abs_srcdir) $(srcdir)/tools/install_htmlize.sh $(htmlize_el)
|
abs_srcdir=$(abs_srcdir) $(srcdir)/tools/install_htmlize.sh $(htmlize_el)
|
||||||
|
|
||||||
tests/chbrclf.h: $(qmckl_h)
|
tests/chbrclf.h: $(qmckl_h)
|
||||||
|
@ -9,12 +9,7 @@ if [[ -z ${srcdir} ]] ; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z ${top_builddir} ]] ; then
|
readonly DOCS=share/doc/qmckl/
|
||||||
echo "Error: srcdir environment variable is not defined"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
readonly DOCS=${top_builddir}/share/doc/qmckl/
|
|
||||||
readonly ORG=${srcdir}/org/
|
readonly ORG=${srcdir}/org/
|
||||||
readonly HTMLIZE=${DOCS}/html/htmlize.el
|
readonly HTMLIZE=${DOCS}/html/htmlize.el
|
||||||
readonly CONFIG_DOC=${srcdir}/tools/config_doc.el
|
readonly CONFIG_DOC=${srcdir}/tools/config_doc.el
|
||||||
@ -47,7 +42,7 @@ function extract_doc()
|
|||||||
for i in $@
|
for i in $@
|
||||||
do
|
do
|
||||||
exported=${i%.org}.exported
|
exported=${i%.org}.exported
|
||||||
exported=${top_builddir}/src/$(basename $exported)
|
exported=${srcdir}/src/$(basename $exported)
|
||||||
NOW=$(date +"%m%d%H%M.%S")
|
NOW=$(date +"%m%d%H%M.%S")
|
||||||
extract_doc ${i} &> $exported
|
extract_doc ${i} &> $exported
|
||||||
rc=$?
|
rc=$?
|
||||||
|
@ -49,8 +49,8 @@ def main():
|
|||||||
f_test_o = "tests/test_"+i+"_f.$(OBJEXT)"
|
f_test_o = "tests/test_"+i+"_f.$(OBJEXT)"
|
||||||
c_test = "tests/test_"+i+".c"
|
c_test = "tests/test_"+i+".c"
|
||||||
f_test = "tests/test_"+i+"_f.F90"
|
f_test = "tests/test_"+i+"_f.F90"
|
||||||
html = "share/doc/qmckl/html/"+i+".html"
|
html = "$(htmldir_loc)/"+i+".html"
|
||||||
text = "share/doc/qmckl/text/"+i+".txt"
|
text = "$(textdir_loc)/"+i+".txt"
|
||||||
|
|
||||||
i="src/"+i
|
i="src/"+i
|
||||||
|
|
||||||
@ -267,7 +267,7 @@ def main():
|
|||||||
|
|
||||||
for f in sorted(DEPS_DOC.keys()):
|
for f in sorted(DEPS_DOC.keys()):
|
||||||
output += [ DEPS_DOC[f] + ": $(srcdir)/" + f + " $(htmlize_el)",
|
output += [ DEPS_DOC[f] + ": $(srcdir)/" + f + " $(htmlize_el)",
|
||||||
"\t$(export_verbose)top_builddir=$(abs_top_builddir) srcdir=$(abs_srcdir) $(srcdir)/tools/missing bash $(srcdir)/tools/build_doc.sh $(srcdir)/"+f,
|
"\tsrcdir=$(abs_srcdir) $(srcdir)/tools/missing bash $(srcdir)/tools/build_doc.sh $(srcdir)/"+f,
|
||||||
"" ]
|
"" ]
|
||||||
output += ["endif"]
|
output += ["endif"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user