summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/generic/mkjobtexmf/Makefile.in
blob: a31a9dcb44327432ab8424883fff59a2680a96c4 (plain)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Makefile.in
# @configure_input@

# Copyright 2007 by Heiko Oberdiek.
#
# The file is part of project mkjobtexmf.
# It's free software; you may redistribute it and/or
# modify it under the same terms as Perl itself
# (Perl Artistic License/GNU General Public License, version 2).

VPATH = @srcdir@
srcdir = @srcdir@
SHELL = @SHELL@

prefix = @prefix@
datarootdir = @datarootdir@
exec_prefix = @exec_prefix@
bindir = @bindir@
mandir = @mandir@
manext = 1
man1dir = $(mandir)/man$(manext)

INSTALL = @INSTALL@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_DATA = @INSTALL_DATA@

PRJ = mkjobtexmf
SRC_FILE = $(PRJ).pl
SRC_FILES = $(SRC_FILE) $(PRJ).ltx
DOC_FILES = $(PRJ).txt $(PRJ).man $(PRJ).html $(PRJ).pdf README
ALL_FILES = $(DOC_FILES) configure
AUTOSRC_FILES = configure.ac Makefile.in install-sh
DISTRIB_FILES = $(SRC_FILES) $(ALL_FILES) $(AUTOSRC_FILES)
PDFLATEX = TEXINPUTS=$(srcdir): pdflatex

default all:

include $(wildcard $(srcdir)/$(PRJ).mk)

doc: $(DOC_FILES)

$(PRJ).txt: $(SRC_FILE)
	pod2text -l $< $@

$(PRJ).man: $(SRC_FILE)
	pod2man $< $@

$(PRJ).html: $(SRC_FILE)
	pod2html --infile=$< --outfile=$@

$(PRJ).pdf: $(PRJ).ltx $(PRJ).tex
	$(PDFLATEX) $<
	makeindex $(PRJ)
	$(PDFLATEX) $<
	makeindex $(PRJ)
	$(PDFLATEX) $<
	makeindex $(PRJ)
	$(PDFLATEX) $<
	makeindex $(PRJ)
	$(PDFLATEX) $<

$(PRJ).tex: $(SRC_FILE)
	pod2latex -out $@ $<

distrib: $(PRJ).zip

$(PRJ).zip: $(DISTRIB_FILES)
	zip -9j $@ $+

install:
	$(INSTALL) -d $(bindir) $(man1dir)
	$(INSTALL_SCRIPT) $(srcdir)/$(PRJ).pl $(bindir)/$(PRJ)
	$(INSTALL_DATA) $(srcdir)/$(PRJ).man $(man1dir)/$(PRJ).1

check: $(SRC_FILE)
	podchecker $<

uninstall:
	-rm -f $(bindir)/$(PRJ) $(mandir)/man1/$(PRJ).1

clean:
	-rm -f $(PRJ).aux $(PRJ).log $(PRJ).toc
	-rm -f $(PRJ).idx $(PRJ).ind $(PRJ).ilg
	-rm -f pod2htmd.tmp pod2htmi.tmp

distclean: clean
	-rm -f Makefile config.status config.log config.cache
	-rm -f $(PRJ).tex

realclean: distclean
	-rm -f $(ALL_FILES) $(PRJ).zip

mostlyclean: clean

.PHONY: default all doc distrib install check uninstall \
        clean distclean realclean mostlyclean