Commits

Anonymous committed 261776e

Fixed the txt2html building.

  • Participants
  • Parent commits ea167cc
  • Branches conversion-to-cmake

Comments (0)

Files changed (2)

File src/Common.cmake

    )
 ENDMACRO(INSTALL_MAN)
 
-MACRO(DEFINE_WML_AUX_PERL_PROG BASENAME)
+MACRO(DEFINE_WML_AUX_PERL_PROG_WITHOUT_MAN BASENAME)
     PREPROCESS_PATH_PERL("preproc_${BASENAME}" "${BASENAME}.src" "${BASENAME}.pl")
-    RUN_POD2MAN("pod_${BASENAME}" "${BASENAME}.src" "${BASENAME}.1" "1" "EN  Tools" "En Tools")
     INSTALL(
         FILES "${BASENAME}.pl"
         DESTINATION "lib/exec/wml_aux_${BASENAME}"
     )
+ENDMACRO(DEFINE_WML_AUX_PERL_PROG_WITHOUT_MAN BASENAME)
+
+MACRO(DEFINE_WML_AUX_PERL_PROG BASENAME)
+    DEFINE_WML_AUX_PERL_PROG_WITHOUT_MAN("${BASENAME}")
+    RUN_POD2MAN("pod_${BASENAME}" "${BASENAME}.src" "${BASENAME}.1" "1" "EN  Tools" "En Tools")
     INSTALL_MAN ("${BASENAME}.1" 1)
 ENDMACRO(DEFINE_WML_AUX_PERL_PROG BASENAME)
 

File src/wml_aux/txt2html/CMakeLists.txt

 INCLUDE ("../../Common.cmake")
 
-DEFINE_WML_AUX_PERL_PROG("txt2html")
+DEFINE_WML_AUX_PERL_PROG_WITHOUT_MAN ("txt2html")
+
+CONFIGURE_FILE ("txt2html.txt" "txt2html.1" COPYONLY)
+
+INSTALL_MAN( "txt2html.1" "1")
+
+INSTALL(
+    FILES "txt2html.dict"
+    DESTINATION "lib/data/"
+)