blob: 39d4e2afae40f577850a8da603f72d3a5663a5a5 (
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
|
EXTRA_DIST = HISTORY
SUBDIRS = babel emacs scripts doc
DISTCLEANFILES = thailatex.spec \
$(tdsdist_tgz) $(ctandist_tgz) \
$(tdsdist_zip) $(ctandist_zip)
doc_DATA = README
install-data-hook:
@if test -z "$(DESTDIR)" ; then \
$(TEXHASH) ; \
else \
echo "***" ; \
echo "*** Warning: TeX index not updated" ; \
echo "***" ; \
echo "*** update it on the target system" ; \
echo "*** using $(TEXHASH) command" ; \
echo "***" ; \
fi
uninstall-hook:
$(TEXHASH)
tdsdist_tgz = $(PACKAGE)-$(VERSION).tds.tar.gz
ctandist_tgz = $(PACKAGE)-$(VERSION).ctan.tar.gz
tdsdist_zip = $(PACKAGE)-$(VERSION).tds.zip
ctandist_zip = $(PACKAGE)-$(VERSION).ctan.zip
tdsdistdir = $(PACKAGE)-$(VERSION)-tds
inst-tds:
rm -rf $(tdsdistdir)
mkdir $(tdsdistdir)
confdir=`cd $(top_srcdir) && pwd` \
&& cd $(tdsdistdir) \
&& $$confdir/configure --prefix=/usr \
--with-texmfdir=/ --docdir=/doc/latex/$(PACKAGE) \
&& $(MAKE) $(AM_MAKEFLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) DESTDIR=`pwd`/inst install \
&& rm -rf inst/usr \
&& mkdir -p inst/source/latex/$(PACKAGE) \
&& make distdir distdir=inst/source/latex/$(PACKAGE)
dist-tds-tgz: inst-tds
rm -f $(tdsdist_tgz)
cd $(tdsdistdir)/inst \
&& tar cf - * | gzip -9 -c > ../../$(tdsdist_tgz)
rm -rf $(tdsdistdir)
dist-tds-zip: inst-tds
rm -f $(tdsdist_zip)
cd $(tdsdistdir)/inst \
&& zip -r ../../$(tdsdist_zip) *
rm -rf $(tdsdistdir)
dist-tds: dist-tds-zip
.PHONY: dist-tds dist-tds-tgz dist-tds-zip inst-tds
|