Commit 27624434 authored by David Moxey's avatar David Moxey

Slight tweak to avoid empty html directory being installed

parent 3bd04831
...@@ -53,8 +53,12 @@ ADD_CUSTOM_TARGET(developer-guide-pdf ...@@ -53,8 +53,12 @@ ADD_CUSTOM_TARGET(developer-guide-pdf
# Install output, if it is generated. # Install output, if it is generated.
INSTALL(CODE "IF (EXISTS ${DEVGUIDE}/html) INSTALL(CODE "IF (EXISTS ${DEVGUIDE}/html)
FILE(INSTALL ${DEVGUIDE}/html FILE(GLOB DGHTML ${DEVGUIDE}/html/*)
DESTINATION \${CMAKE_INSTALL_PREFIX}/${NEKTAR_DOC_DIR}/developers-guide) LIST(LENGTH DGHTML DGHTML_LEN)
IF(DGHTML_LEN GREATER 0)
FILE(INSTALL ${DEVGUIDE}/html
DESTINATION \${CMAKE_INSTALL_PREFIX}/${NEKTAR_DOC_DIR}/developers-guide)
ENDIF()
ENDIF() ENDIF()
IF (EXISTS ${DEVGUIDE}/developers-guide.pdf) IF (EXISTS ${DEVGUIDE}/developers-guide.pdf)
FILE(INSTALL ${DEVGUIDE}/developers-guide.pdf FILE(INSTALL ${DEVGUIDE}/developers-guide.pdf
......
...@@ -97,8 +97,7 @@ This developer's guide, like most of \nek{}, is not due to one sole person but a ...@@ -97,8 +97,7 @@ This developer's guide, like most of \nek{}, is not due to one sole person but a
\paragraph{Spencer J. Sherwin}: Prof. Spencer Sherwin is a Professor of Computational Fluid Mechanics in the Department of Aeronautics at Imperial \paragraph{Spencer J. Sherwin}: Prof. Spencer Sherwin is a Professor of Computational Fluid Mechanics in the Department of Aeronautics at Imperial
College London (UK). College London (UK).
\paragraph{Chris D. Cantwell}: Dr. Chris Cantwell is a Research Fellow in the Department of Aeronautics at Imperial \paragraph{Chris D. Cantwell}: Dr. Chris Cantwell is a Senior Lecturer in Aeronautics in the Department of Aeronautics at Imperial College London (UK).
College London (UK).
\paragraph{David Moxey}: Dr. David Moxey is a Senior Lecturer in Engineering in the College of Engineering, Mathematics and Physical Sciences \paragraph{David Moxey}: Dr. David Moxey is a Senior Lecturer in Engineering in the College of Engineering, Mathematics and Physical Sciences
at the University of Exeter (UK). at the University of Exeter (UK).
......
...@@ -54,8 +54,12 @@ ADD_CUSTOM_TARGET(user-guide-pdf ...@@ -54,8 +54,12 @@ ADD_CUSTOM_TARGET(user-guide-pdf
# Install output, if it is generated. # Install output, if it is generated.
INSTALL(CODE "IF (EXISTS ${USERGUIDE}/html) INSTALL(CODE "IF (EXISTS ${USERGUIDE}/html)
FILE(INSTALL ${USERGUIDE}/html FILE(GLOB UGHTML ${USERGUIDE}/html/*)
DESTINATION \${CMAKE_INSTALL_PREFIX}/${NEKTAR_DOC_DIR}/user-guide) LIST(LENGTH UGHTML UGHTML_LEN)
IF(UGHTML_LEN GREATER 0)
FILE(INSTALL ${USERGUIDE}/html
DESTINATION \${CMAKE_INSTALL_PREFIX}/${NEKTAR_DOC_DIR}/user-guide)
ENDIF()
ENDIF() ENDIF()
IF (EXISTS ${USERGUIDE}/user-guide.pdf) IF (EXISTS ${USERGUIDE}/user-guide.pdf)
FILE(INSTALL ${USERGUIDE}/user-guide.pdf FILE(INSTALL ${USERGUIDE}/user-guide.pdf
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment