Skip to content

Commit c636bb1

Browse files
committed
Allowing Doxygen to built html and man doc in specified directory
following recommendation from @albert-github
1 parent 86f53af commit c636bb1

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ lapacke_example: lapackelib lapacklib blaslib
120120
.PHONY: html
121121
html:
122122
@echo "LAPACK HTML PAGES GENERATION with Doxygen"
123-
doxygen DOCS/Doxyfile
123+
( cat DOCS/Doxyfile ; echo "OUTPUT_DIRECTORY=$(DOCSDIR)" ) | doxygen -
124124
@echo "=================="
125125
@echo "LAPACK HTML PAGES GENERATED in DOCS/explore-html"
126126
@echo "Usage: open DOCS/explore-html/index.html"
@@ -130,9 +130,10 @@ html:
130130
.PHONY: man
131131
man:
132132
@echo "LAPACK MAN PAGES GENERATION with Doxygen"
133-
doxygen DOCS/Doxyfile_man
133+
@echo "OUTPUT_DIRECTORY=$(DOCSDIR)"
134+
( cat DOCS/Doxyfile_man ; echo "OUTPUT_DIRECTORY=$(DOCSDIR)" ) | doxygen -
134135
@echo "=================="
135-
@echo "LAPACK MAN PAGES GENERATED in DOCS/MAN"
136+
@echo "LAPACK MAN PAGES GENERATED in DOCS/man"
136137
@echo "Set your MANPATH env variable accordingly"
137138
@echo "Usage: man dgetrf.f"
138139
@echo "=================="

make.inc.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,8 @@ CBLASLIB = $(TOPSRCDIR)/libcblas.a
8181
LAPACKLIB = $(TOPSRCDIR)/liblapack.a
8282
TMGLIB = $(TOPSRCDIR)/libtmglib.a
8383
LAPACKELIB = $(TOPSRCDIR)/liblapacke.a
84+
85+
# DOCUMENTATION DIRECTORY
86+
# If you generate html pages (make html), documentation will be placed in $(DOCSDIR)/explore-html
87+
# If you generate man pages (make man), documentation will be placed in $(DOCSDIR)/man
88+
DOCSDIR = $(TOPSRCDIR)/DOCS

0 commit comments

Comments
 (0)