]> git.proxmox.com Git - mirror_lxc.git/blobdiff - doc/Makefile.am
Merge pull request #3067 from Rachid-Koucha/patch-1
[mirror_lxc.git] / doc / Makefile.am
index 1cb0a455d4b5e118f708ba0731bfe5992ea18724..2bf92a0a8cc15b06b2902bc0d18b03ef277ae4ad 100644 (file)
@@ -1,19 +1,71 @@
+SUBDIRS = examples rootfs
+DIST_SUBDIRS = examples rootfs ja ko api
+
+if USE_DOCBOOK2X
+SUBDIRS += ja ko
+endif
+
+if ENABLE_API_DOCS
+SUBDIRS += api
+endif
+
+EXTRA_DIST = \
+       lxc.container.conf \
+       lxc.system.conf \
+       FAQ.txt
+
 if ENABLE_DOCBOOK
-man_MANS = \
-       lxc-create.1 \
-       lxc-destroy.1 \
-       lxc-execute.1 \
-       lxc-start.1 \
-       lxc-stop.1 \
-       lxc-freeze.1 \
-       lxc-unfreeze.1 \
-       lxc-monitor.1 \
-       lxc-wait.1 \
-       lxc-ls.1 \
-       lxc-ps.1 \
-       lxc-cgroup.1
-
-
-%.1 : %.sgml 
-       docbook2man $<
-endif
\ No newline at end of file
+man_MANS = lxc.conf.5 \
+          lxc.container.conf.5 \
+          lxc.system.conf.5 \
+          lxc-usernet.5 \
+          lxc.7
+if ENABLE_TOOLS
+man_MANS += lxc-attach.1 \
+           lxc-autostart.1 \
+           lxc-cgroup.1 \
+           lxc-checkconfig.1 \
+           lxc-checkpoint.1 \
+           lxc-config.1 \
+           lxc-console.1 \
+           lxc-copy.1 \
+           lxc-create.1 \
+           lxc-destroy.1 \
+           lxc-device.1 \
+           lxc-execute.1 \
+           lxc-freeze.1 \
+           lxc-info.1 \
+           lxc-ls.1 \
+           lxc-monitor.1 \
+           lxc-snapshot.1 \
+           lxc-start.1 \
+           lxc-stop.1 \
+           lxc-top.1 \
+           lxc-unfreeze.1 \
+           lxc-unshare.1 \
+           lxc-wait.1
+endif
+
+if ENABLE_COMMANDS
+man_MANS += lxc-update-config.1 \
+           lxc-user-nic.1 \
+           lxc-usernsexec.1
+endif
+
+%.1 : %.sgml
+       $(db2xman) $<
+       test "$(shell basename $@)" != "$@" && mv $(shell basename $@) $@ || true
+
+%.5 : %.sgml
+       $(db2xman) $<
+       test "$(shell basename $@)" != "$@" && mv $(shell basename $@) $@ || true
+
+%.7 : %.sgml
+       $(db2xman) $<
+       test "$(shell basename $@)" != "$@" && mv $(shell basename $@) $@ || true
+
+lxc-%.sgml : common_options.sgml see_also.sgml
+
+clean-local:
+       $(RM) manpage.* *.7 *.5 *.1 $(man_MANS)
+endif