The -mklinks option will also create symbolic links for miktex format files and scripts.
The minimum required CMake version.7.0.
For example, package the miktex file name of the pdfTeX executable is miktex-pdftex.
For example, you can invoke pdflatex (pdfTeX miktex with format pdflatex loaded) and latexmk (wrapper for the Perl script ).If you want to generate Makefiles for nmake, run this: cmake -G "NMake Makefiles"./source Useful build variables When running CMake to generate the Makefiles, it is possible to set build variables as follows: cmake -dvar1VAL1 -dvar2VAL2.First steps Initialize the package database MiKTeX has the ability to install missing packages "on-the-fly".Building MiKTeX Run the Make utility to build MiKTeX, for example: make or, if you build with NMake on Windows: nmake Installing CMake has created a standard install target which you can use to install everything in the standard location (see the cmake_install_prefix description above).Various miktex build utilities, in addition to the compiler and the CMake build system, you will need these utilities: All platforms: cat fop sed xsltproc.Myers-2 1 by miktex Mark package Yagnatinsky 0 by Rodrigo Rodrigues.Please consult the mpm(1) man page, for more information about the utility.Relocating the installation On Unix-like platforms, you can use the destdir mechanism in order to relocate the whole installation: make destdir/home/jane install This will install everything using the installation prefix (cmake_install_prefix) prepended with the destdir value, which finally gives /home/jane/usr/local. Running CMake It is recommended that you install build outside the source code directory: cmake./source Here you have to game specify the path to dream the MiKTeX source code directory (./source in the example above).
opt/miktex Use this prefix, if you want to create a self-contained MiKTeX setup which does not conflict with other system packages.If you are setting up MiKTeX just for yourself (i.e., in your user directory you have to omit this option.Uninstalling There uninstaller is an uninstall target which allows you to remove all files installed by make windows install (see olympians above make uninstall Removing MiKTeX directories There are a couple of MiKTeX directories which have to be removed manually.CMake for Windows may require a generator specification.Windows only: hhc makehm mc midl mt pandoc, libraries, on program Unix-like platforms (including macOS you will need development packages for these libraries: apr aprutil bzip2 cairo expat fontconfig freetype2 fribidi gd gmp graphite2 harfbuzz-icu hunspell icu jpeg log4cxx lzma mpfr mspack, libreSSL (or OpenSSL) pixman.The most useful build variables are: cmake_install_prefix path The installation dream directory used by make install (see below).1 by Aradenatorix Veckhôm.On Linux and macOS, you would run make install This will install MiKTeX in the /usr/local-prefixed directory tree.Uninstalling If you want to completely wipe out MiKTeX, you have to remove symbolic links undo the effect of make install remove MiKTeX directories Before you proceed, you should run initexmf -report in order to find the locations of the MiKTeX directories.