~ubuntu-branches/ubuntu/precise/unoconv/precise

« back to all changes in this revision

Viewing changes to docs/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Vincent Bernat
  • Date: 2007-11-17 11:38:42 UTC
  • Revision ID: james.westby@ubuntu.com-20071117113842-xjxqf59n012r5trb
Tags: upstream-0.3
ImportĀ upstreamĀ versionĀ 0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
prefix = /usr
 
2
datadir = $(prefix)/share
 
3
mandir = $(datadir)/man
 
4
 
 
5
txttargets = $(shell echo *.txt)
 
6
htmltargets = $(patsubst %.txt, %.html, $(txttargets))
 
7
 
 
8
all:
 
9
 
 
10
dist: docs
 
11
 
 
12
docs: unoconv.1 $(htmltargets)
 
13
 
 
14
install: unoconv.1
 
15
        install -Dp -m0644 unoconv.1 $(DESTDIR)$(mandir)/man1/unoconv.1
 
16
 
 
17
clean:
 
18
        rm -f unconv.1 *.html *.xml
 
19
 
 
20
%.1.html: %.1.txt
 
21
        asciidoc -d manpage $<
 
22
 
 
23
%.1: %.1.xml
 
24
        xmlto man $<
 
25
 
 
26
%.html: %.txt
 
27
        asciidoc $<
 
28
 
 
29
%.1.xml: %.1.txt
 
30
        asciidoc -b docbook -d manpage $<