summaryrefslogtreecommitdiff
path: root/Build/source/texk/tex4htk/Makefile.in.orig
blob: d7859d85fda9917cce081a771dcddc4a48deca06 (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
# @configure_input@
# Makefile for tex4ht in TeX Live.  Public domain.
# Originally written by S. Rahtz.
version = 1.0

kpse_include ../make/paths.mk
kpse_include ../make/common.mk
kpse_include ../make/programs.mk
kpse_include ../make/texi.mk
prog_cflags = -DUNIX -DKPATHSEA -DNeedFunctionPrototypes

objects = tex4ht.o t4ht.o

programs = tex4ht t4ht 
shell_scripts = htcontext htlatex htmex httex httexi htxelatex htxetex ht
perl_scripts = mk4ht

default all: $(programs)  

t4ht: $(kpathsea) t4ht.o
	$(kpathsea_link) t4ht.o $(LOADLIBES)

tex4ht: $(kpathsea) tex4ht.o
	$(kpathsea_link) tex4ht.o $(LOADLIBES)

kpse_include ../make/tkpathsea.mk

install: install-exec install-data

uninstall: uninstall-exec uninstall-data

install-exec: all
	$(SHELL) $(top_srcdir)/../mkinstalldirs $(bindir)
	for p in $(programs); do $(INSTALL_LIBTOOL_PROG) $$p $(bindir); done
	$(INSTALL) -d "$(prefix)/texmf-dist/scripts/tex4ht"
	for p in $(shell_scripts); do $(INSTALL_SCRIPT) $(srcdir)/$$p "$(prefix)/texmf-dist/scripts/tex4ht/$$p.sh"; done
	for p in $(perl_scripts); do $(INSTALL_SCRIPT) $(srcdir)/$$p "$(prefix)/texmf-dist/scripts/tex4ht/$$p.pl"; done
	if test -d "$(bindir)/../../texmf-dist/scripts/tex4ht"; then \
	  d=../../texmf-dist/scripts/tex4ht; \
	elif test -d "$(bindir)/../texmf-dist/scripts/tex4ht"; then \
	  d=../texmf-dist/scripts/tex4ht; \
	else \
	  echo "Error: texmf-dist/scripts/tex4ht directory not found" >&2; \
	  exit 1; \
	fi; \
	for p in $(shell_scripts); do rm -f $(bindir)/$$p; ln -s $$d/$$p.sh $(bindir)/$$p; done; \
	for p in $(perl_scripts); do rm -f $(bindir)/$$p; ln -s $$d/$$p.pl $(bindir)/$$p; done

uninstall-exec:
	for p in $(programs) $(scripts); do rm -f $(bindir)/$$p; done

install-data:

uninstall-data:

distname = tex4ht

kpse_include ../make/dist.mk
kpse_include ../make/config.mk
kpse_include ../make/clean.mk
distclean::
	-rm v*.tex *.txt i*.tex *.gif *.toc *.otc *.lg *.xref *.html *.idv *.log *.aux tmp.* tex4ht.env

dvi info check: 

maybecheck:
	TEXINPUTS=$(srcdir): $(SHELL) $(srcdir)/ht latex test


tex4ht.env: tex4ht.in
	sed -e "s;@texmf@;$(texmf);" < $(srcdir)/tex4ht.in \
	| sed -e "s;@prefix@;$(prefix);g" \
	| sed -e "s;@imbindir@.;;g" \
	| sed -e "s/Mmove/Mmv/" \
	| sed -e "s/Ccopy/Ccp/" \
	> tex4ht.env

kpse_include ../make/rdepend.mk
kpse_include depend.mk