X-Git-Url: http://git.annexia.org/?p=virt-mem.git;a=blobdiff_plain;f=Makefile.in;h=192b02715ec316b1fedfa93fe481f703a912f5f8;hp=faaf202a4be30116211137d6341fb49b01025f50;hb=9414deeb6210c5f2c5219c6e99eb329b4bb1be26;hpb=ae6f6e8b848a3a49e36a4461715e292d3fc5955d diff --git a/Makefile.in b/Makefile.in index faaf202..192b027 100644 --- a/Makefile.in +++ b/Makefile.in @@ -21,9 +21,17 @@ VERSION = @PACKAGE_VERSION@ INSTALL = @INSTALL@ -SUBDIRS = lib uname dmesg +HAVE_PERLDOC = @HAVE_PERLDOC@ -all install: +TOOLS = uname dmesg + +SUBDIRS = lib $(TOOLS) + +ifeq ($(HAVE_PERLDOC),perldoc) +TARGETS += virt-mem.1 virt-mem.txt $(TOOLS:%=virt-%.1) +endif + +all install: $(TARGETS) for d in $(SUBDIRS) po; do \ $(MAKE) -C $$d $@; \ if [ $$? -ne 0 ]; then exit 1; fi; \ @@ -52,6 +60,20 @@ distclean: clean rm -f Makefile rm -f virt-df/Makefile +# Manual page. + +ifeq ($(HAVE_PERLDOC),perldoc) +virt-mem.1: virt-mem.pod + pod2man -c "Virtualization Support" --release "$(PACKAGE)-$(VERSION)" \ + $< > $@ + +virt-mem.txt: virt-mem.pod + pod2text $< > $@ + +virt-%.1: + echo '.so man1/virt-mem.1' > $@ +endif + # Distribution. dist: