File: Makefile.am

package info (click to toggle)
caspar 20050302-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 552 kB
  • ctags: 86
  • sloc: sh: 3,136; makefile: 112
file content (59 lines) | stat: -rw-r--r-- 1,707 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
## Process this file with automake to produce Makefile.in
## $Id: Makefile.am,v 1.5 2003/08/09 14:53:52 joostvb Exp $

# This script is free software; you can distribute it and/or modify it
# under the terms of the GNU GPL.  See the file COPYING.

## Copyright (C) 2003 Joost van Baal, based upon work by Stijn van Dongen

TROFF = groff

## Zoem is a an interpretive macro language, for creating mark-up languages, by
## Stijn van Dongen. Information about zoem can be found on the zoem webpage at
## http://micans.org/zoem/ .
ZOEM = zoem

## tidy is a HTML syntax checker and reformatter, available from
## http://www.w3.org/People/Raggett/tidy/ , by Dave Raggett <dsr@w3.org>
TIDY = tidy -quiet

## http://w3m.sourceforge.net/
## w3m is a text-based web browser, which can be used as a text formatting tool
## which typesets HTML into plain text.
W3M = w3m

PACKAGE = @PACKAGE_TARNAME@
docdir = $(datadir)/doc/$(PACKAGE)

azms = caspar.azm caspar-typesetting.azm
typetargets = caspar.html caspar.ps caspar.txt caspar-typesetting.html \
  caspar-typesetting.ps caspar-typesetting.txt

doc_DATA = $(typetargets) $(azms) ChangeLog.2002
man_MANS = caspar.7 caspar-typesetting.7

EXTRA_DIST = $(doc_DATA) $(man_MANS)

SUFFIXES = .7 .azm .html .ps .txt

.azm.7:
	$(ZOEM) -d roff -i $< -o $@
	$(ZOEM) -d roff -i $< -o $@

.7.ps:
	$(TROFF) -man $< > $@

.azm.html:
	$(ZOEM) -d html -i $< -o $@
	$(ZOEM) -d html -i $< -o $@
	- $(TIDY) -e $@

## alternative, one could call something like
## groff -man -Tascii $< > $@
## for generating ascii directly from roff.
## However, this generates output which uses the boldface-^H trick
.html.txt:
	$(W3M) -dump $< > $@

MAINTAINERCLEANFILES = $(man_MANS) $(typetargets)