summaryrefslogtreecommitdiff
path: root/doc/CMakeLists.txt
blob: ed38274ea5aa21f17d1efdecc9e2b9370fb97fd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55

SET (libsolv_MANPAGES3
    libsolv.3 libsolv-bindings.3 libsolv-constantids.3 libsolv-history.3
    libsolv-pool.3)

SET (libsolv_MANPAGES1
    mergesolv.1 dumpsolv.1 installcheck.1 testsolv.1 repo2solv.1 solv.1)

IF (ENABLE_RPMDB)
SET (libsolv_MANPAGES1 ${libsolv_MANPAGES1} rpmdb2solv.1 rpms2solv.1)
ENDIF (ENABLE_RPMDB)

IF (ENABLE_RPMMD)
SET (libsolv_MANPAGES1 ${libsolv_MANPAGES1} repomdxml2solv.1 rpmmd2solv.1 updateinfoxml2solv.1 deltainfoxml2solv.1)
ENDIF (ENABLE_RPMMD)

IF (ENABLE_HELIXREPO)
SET (libsolv_MANPAGES1 ${libsolv_MANPAGES1} helix2solv.1)
ENDIF (ENABLE_HELIXREPO)

IF (ENABLE_SUSEREPO)
SET (libsolv_MANPAGES1 ${libsolv_MANPAGES1} susetags2solv.1)
ENDIF (ENABLE_SUSEREPO)

IF (ENABLE_COMPS)
SET (libsolv_MANPAGES1 ${libsolv_MANPAGES1} comps2solv.1)
ENDIF (ENABLE_COMPS)

IF (ENABLE_DEBIAN)
SET (libsolv_MANPAGES1 ${libsolv_MANPAGES1} deb2solv.1)
ENDIF (ENABLE_DEBIAN)

IF (ENABLE_MDKREPO)
SET (libsolv_MANPAGES1 ${libsolv_MANPAGES1} mdk2solv.1)
ENDIF (ENABLE_MDKREPO)

IF (ENABLE_ARCHREPO)
SET (libsolv_MANPAGES1 ${libsolv_MANPAGES1} archpkgs2solv.1 archrepo2solv.1)
ENDIF (ENABLE_ARCHREPO)

IF (ENABLE_APPDATA)
SET (libsolv_MANPAGES1 ${libsolv_MANPAGES1} appdata2solv.1)
ENDIF (ENABLE_APPDATA)

# prepend gen directory
STRING(REGEX REPLACE "([^;]+)" "gen/\\1" libsolv_MANPAGES1 "${libsolv_MANPAGES1}")
STRING(REGEX REPLACE "([^;]+)" "gen/\\1" libsolv_MANPAGES3 "${libsolv_MANPAGES3}")

INSTALL(FILES
    ${libsolv_MANPAGES3}
    DESTINATION "${CMAKE_INSTALL_MANDIR}/man3")

INSTALL(FILES
    ${libsolv_MANPAGES1}
    DESTINATION "${CMAKE_INSTALL_MANDIR}/man1")