summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-02-07 13:53:58 -0500
committerHarald Hoyer <harald@redhat.com>2012-09-27 16:50:25 +0200
commit2692a422315c6eb6df251c652f4295d749984452 (patch)
treec4512f01486324626c2bf3c67b2ec504295aeb84 /Makefile
parente064127729af69c5147a0e91eb9147124340004d (diff)
downloaddracut-2692a422315c6eb6df251c652f4295d749984452.tar.gz
dracut-2692a422315c6eb6df251c652f4295d749984452.tar.bz2
dracut-2692a422315c6eb6df251c652f4295d749984452.zip
build: Add --disable-documentation option
Some operating system builders may not want to build documention, for example during a bootstrapping process.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d04d3dd2..ac1c178e 100644
--- a/Makefile
+++ b/Makefile
@@ -61,6 +61,10 @@ indent:
doc: $(manpages) dracut.html
+ifeq ($(enable_documentation),yes)
+all: doc
+endif
+
%: %.xml
xsltproc -o $@ -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
@@ -76,7 +80,7 @@ dracut.html: dracut.asc $(manpages)
http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl dracut.xml
rm dracut.xml
-install: doc dracut-version.sh
+install: dracut-version.sh
mkdir -p $(DESTDIR)$(pkglibdir)
mkdir -p $(DESTDIR)$(bindir)
mkdir -p $(DESTDIR)$(sysconfdir)
@@ -94,11 +98,13 @@ install: doc dracut-version.sh
install -m 0755 dracut-logger.sh $(DESTDIR)$(pkglibdir)/dracut-logger.sh
install -m 0755 dracut-initramfs-restore.sh $(DESTDIR)$(pkglibdir)/dracut-initramfs-restore
cp -arx modules.d $(DESTDIR)$(pkglibdir)
+ifeq ($(enable_documentation),yes)
for i in $(man1pages); do install -m 0644 $$i $(DESTDIR)$(mandir)/man1/$${i##*/}; done
for i in $(man5pages); do install -m 0644 $$i $(DESTDIR)$(mandir)/man5/$${i##*/}; done
for i in $(man7pages); do install -m 0644 $$i $(DESTDIR)$(mandir)/man7/$${i##*/}; done
for i in $(man8pages); do install -m 0644 $$i $(DESTDIR)$(mandir)/man8/$${i##*/}; done
ln -fs dracut.cmdline.7 $(DESTDIR)$(mandir)/man7/dracut.kernel.7
+endif
if [ -n "$(systemdsystemunitdir)" ]; then \
mkdir -p $(DESTDIR)$(systemdsystemunitdir); \
install -m 0644 dracut-shutdown.service $(DESTDIR)$(systemdsystemunitdir); \