File: rules

package info (click to toggle)
latex2html 2008-debian1-10
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 11,176 kB
  • ctags: 3,925
  • sloc: perl: 30,941; makefile: 429; sh: 155
file content (45 lines) | stat: -rwxr-xr-x 1,575 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

LIBDIR      := /usr/share/latex2html
TEXPATH     := /usr/share/texmf/tex/latex/html
TMPTOP      := $(CURDIR)/debian/latex2html
DOCDIR 	    := $(TMPTOP)/usr/share/doc/latex2html

CONVERT_CMD := '../latex2html -test_mode -no_math -html_version 4.0,math,frame -accent_images textrm -scalable_fonts'

%:
	dh $@ --with tex

override_dh_auto_configure:
	./configure --verbose --prefix=/usr \
	            --shlibdir=$(LIBDIR) \
                    --libdir=$(LIBDIR) \
                    --with-perl=/usr/bin/perl \
                    --with-iconpath=/usr/share/latex2html/icons \
		    --with-texpath=$(TEXPATH)

override_dh_auto_build:
	cd docs && ln -sf ../texinputs/html*.sty .
	$(MAKE)
	mkdir -p docs/manual
	$(MAKE) -C docs -f Makefile.frames L2H=$(CONVERT_CMD) \
	      LATEX2HTMLDIR=$(CURDIR) manual.dvi manual.ps manual.html

override_dh_auto_clean:
	dh_auto_clean
	$(MAKE) -C docs clean
	rm -rf docs/manual

override_dh_auto_install:
	$(MAKE) install DESTDIR=$(TMPTOP) INSTALLING_DEBIAN=1
	(cd $(TMPTOP)/$(LIBDIR); \
            mv l2hconf.pm       $(TMPTOP)/etc/latex2html.conf; \
            ln -s               /etc/latex2html.conf l2hconf.pm )
	pod2man pstoimg         > $(TMPTOP)/usr/share/man/man1/pstoimg.1
	rm $(TMPTOP)/$(TEXPATH)/url.sty
	(cd docs/manual/;       tar cf - *.html *.png  *.css) | \
                                (cd $(DOCDIR)/html; tar xf   -)
	rm -rf $(TMPTOP)/$(LIBDIR)/docs
	patch $(TMPTOP)/usr/bin/latex2html debian/latex2html.patch
	chmod a+x $(TMPTOP)/$(LIBDIR)/makemap
	chmod a+x $(TMPTOP)/$(LIBDIR)/makeseg/makeseg