forked from crash-python/crash-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (33 loc) · 890 Bytes
/
Makefile
File metadata and controls
44 lines (33 loc) · 890 Bytes
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
ASCIIDOC = /usr/bin/asciidoc
ASCIIDOC_EXTRA =
MANPAGE_XSL = manpage-normal.xsl
XMLTO = /usr/bin/xmlto
XMLTO_EXTRA = -m manpage-bold-literal.xsl
GZIPCMD = /usr/bin/gzip
INSTALL = /usr/bin/install -c
MAN1_TXT = pycrash.asciidoc
prefix ?= /usr
mandir ?= $(prefix)/share/man
man1dir = $(mandir)/man1
GZ_MAN1 = $(patsubst %.asciidoc,%.1.gz,$(MAN1_TXT))
%.1.gz : %.1
$(GZIPCMD) -n -c $< > $@
%.1 : %.xml
$(RM) -f $@ && \
$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
%.xml : %.asciidoc asciidoc.conf
rm -f $@+ $@
$(ASCIIDOC) -b docbook -d manpage -f asciidoc.conf \
$(ASCIIDOC_EXTRA) -o $@+ $<
mv $@+ $@
man: $(GZ_MAN1)
all: man
man-install: man
$(INSTALL) -d -m 755 $(DESTDIR)$(man1dir)
$(INSTALL) -m 644 $(GZ_MAN1) $(DESTDIR)$(man1dir)
install: man-install
python setup.py install
lint: lint3
pylint --rcfile tests/pylintrc -r n crash
lint3:
pylint --py3k -r n crash