Commits

shl...@7081e830-ea04-0410-ae62-fb6148e2d9db  committed 59dc98e

Add install instructions for all the wml_aux .

  • Participants
  • Parent commits 79e0a30
  • Branches conversion-to-cmake

Comments (0)

Files changed (11)

File src/Common.cmake

     ENDIF(UNIX)
 ENDMACRO(FIND_LIBM)
 
+MACRO(INSTALL_MAN SOURCE SECTION)
+    INSTALL(
+        FILES
+            ${SOURCE}
+        DESTINATION
+            "share/man/man${SECTION}"
+   )
+ENDMACRO(INSTALL_MAN)
 
+MACRO(DEFINE_WML_AUX_PERL_PROG 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}"
+    )
+    INSTALL_MAN ("${BASENAME}.1" 1)
+ENDMACRO(DEFINE_WML_AUX_PERL_PROG BASENAME)
+
+MACRO(DEFINE_WML_AUX_C_PROG BASENAME)
+    ADD_EXECUTABLE(${BASENAME} ${ARGN})
+    INSTALL(
+        TARGETS ${BASENAME}
+        DESTINATION "lib/exec/wml_aux_${BASENAME}"
+    )
+    INSTALL_MAN ("${BASENAME}.1" 1)
+ENDMACRO(DEFINE_WML_AUX_C_PROG BASENAME)
+

File src/wml_aux/CMakeLists.txt

+# see - http://www.cmake.org/Wiki/CMake_FAQ#Is_there_an_option_to_produce_more_.27verbose.27_compiling.3F
+SET(CMAKE_VERBOSE_MAKEFILE ON)
+
+CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+
+SUBDIRS ( 
+    iselect
+    htmlclean
+    htmlinfo
+    linklint
+    map2html
+    tidy
+    txt2html
+    weblint
+    freetable
+    )

File src/wml_aux/freetable/CMakeLists.txt

+INCLUDE ("../../Common.cmake")
+
+DEFINE_WML_AUX_PERL_PROG("freetable")

File src/wml_aux/htmlclean/CMakeLists.txt

+INCLUDE ("../../Common.cmake")
+
+DEFINE_WML_AUX_PERL_PROG("htmlclean")

File src/wml_aux/htmlinfo/CMakeLists.txt

+INCLUDE ("../../Common.cmake")
+
+DEFINE_WML_AUX_PERL_PROG("htmlinfo")

File src/wml_aux/iselect/CMakeLists.txt

+SET(CMAKE_VERBOSE_MAKEFILE ON)
+INCLUDE ("../../Common.cmake")
+########### next target ###############
+
+DEFINE_WML_AUX_C_PROG (
+   "iselect"
+   iselect_main.c iselect_browse.c iselect_keys.c
+   iselect_getopt.c iselect_version.c iselect_help.c iselect_readme.c
+)
+

File src/wml_aux/linklint/CMakeLists.txt

+INCLUDE ("../../Common.cmake")
+
+DEFINE_WML_AUX_PERL_PROG("linklint")

File src/wml_aux/map2html/CMakeLists.txt

+INCLUDE ("../../Common.cmake")
+
+DEFINE_WML_AUX_PERL_PROG("map2html")

File src/wml_aux/tidy/CMakeLists.txt

+SET(CMAKE_VERBOSE_MAKEFILE ON)
+INCLUDE ("../../Common.cmake")
+########### next target ###############
+
+DEFINE_WML_AUX_C_PROG (
+   "tidy"
+   attrs.c
+   clean.c
+   config.c
+   entities.c
+   istack.c
+   lexer.c
+   localize.c
+   parser.c
+   pprint.c
+   tab2space.c
+   tags.c
+   tidy.c
+)
+

File src/wml_aux/txt2html/CMakeLists.txt

+INCLUDE ("../../Common.cmake")
+
+DEFINE_WML_AUX_PERL_PROG("txt2html")

File src/wml_aux/weblint/CMakeLists.txt

+INCLUDE ("../../Common.cmake")
+
+DEFINE_WML_AUX_PERL_PROG("weblint")