]> granicus.if.org Git - docbook-dsssl/commitdiff
Added makefile for building udev man pages.
authorMichael Smith <xmldoc@users.sourceforge.net>
Sat, 28 Oct 2006 13:53:59 +0000 (13:53 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Sat, 28 Oct 2006 13:53:59 +0000 (13:53 +0000)
contrib/samples/refentry/udev/Makefile [new file with mode: 0644]

diff --git a/contrib/samples/refentry/udev/Makefile b/contrib/samples/refentry/udev/Makefile
new file mode 100644 (file)
index 0000000..47481ea
--- /dev/null
@@ -0,0 +1,33 @@
+VERSION=
+HOST=kernel.org
+DIR=/pub/linux/utils/kernel/hotplug
+DOWNLOAD_FILENAME=udev-$(VERSION).tar.gz
+EXTRACTED_DIR ?= $(basename $(basename $(DOWNLOAD_FILENAME)))
+TMP=/tmp
+FILE=udev.xml
+MAKEFILE_DOCBOOK = ../../../../xsl/tools/make/Makefile.DocBook
+
+FTP=lftp
+FTP_OPTS=-e
+
+UNTAR ?= tar
+UNTAR_OPTS ?= xvfz
+
+all: man
+
+$(FILE):
+ifeq ($(VERSION),)
+       @echo 'See http://www.us.kernel.org/pub/linux/utils/kernel/hotplug/'
+       @echo 'Specify a VERSION; e.g., "make VERSION=103" to download udev-103.tar.bz2'
+       @echo
+endif
+       $(FTP) $(FTP_OPTS) "mget -O $(TMP) $(DIR)/$(DOWNLOAD_FILENAME); quit" $(HOST)
+       (cd $(TMP); $(UNTAR) $(UNTAR_OPTS) $(DOWNLOAD_FILENAME))
+       cp $(TMP)/$(EXTRACTED_DIR)/*.xml .
+
+man: $(FILE)
+       make -f $(MAKEFILE_DOCBOOK) man
+
+clean:
+       make -f $(MAKEFILE_DOCBOOK) clean
+       $(RM) *.xml