File: Makefile

package info (click to toggle)
impose%2B 0.2-12.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 200 kB
  • sloc: perl: 541; xml: 330; makefile: 67
file content (44 lines) | stat: -rw-r--r-- 998 bytes parent folder | download | duplicates (5)
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
DOC = AUTHORS \
       README \
       TODO \
       html

MAN =  bboxx.1 \
       fixtd.1 \
       impose.1 \
       psbl.1 

BIN = $(MAN:.1=)

DIST = Makefile COPYING INSTALL $(DOC) $(BIN)

VER = 0.1

DESTDIR = /usr/local

all: man

dist:
	tar cvf impose+-$(VER).tar $(DIST)
	gzip impose+-$(VER).tar

# Sneaky style sheet moves around between versions:
man_style_sheet := \
 $(shell /bin/ls /usr/share/xml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl /usr/share/sgml/docbook/stylesheet/nwalsh/manpages/docbook.xsl \
         2>/dev/null | head -1)

man: $(MAN)

%.1: %.xml
	@xsltproc -''-nonet $(man_style_sheet) $<

install:
	@mkdir -p $(DESTDIR)/bin
	@mkdir -p $(DESTDIR)/share/doc/impose+/html
	@cp    $(BIN) $(DESTDIR)/bin
	@cp -r $(DOC) $(DESTDIR)/share/doc/impose+
	@rm -fr $(DESTDIR)/share/doc/impose+/html/CVS

clean:
	rm -f $(MAN)
	rm -rf html/.xvpics