summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/eplain/base/Makefile
blob: 6ff999f6a73acd0e17d7f09582f02a55650c501f (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
97
# Makefile for Eplain.  This file is public domain.

VERSION = 3.0
SOURCES = arrow.tex btxmac.tex ifpdf.sty path.sty texnames.sty xeplain.tex
SUPPORT = add-date add-version AUTHORS ChangeLog COPYING etex.tex fix-checksum \
          INSTALL Makefile merge NEWS PROJECTS README
MANUALS = $(patsubst %,doc/%,Makefile *.texi btxdoc.bib btxdoc.tex texinfo.tex)
TESTS   = $(patsubst %,test/%,*.tex *.bib *.map *.mst *.eps)
UTILS   = util/idxuniq util/trimsee

DIST_FILES = eplain.tex doc/eplain.info $(SOURCES) $(SUPPORT) $(MANUALS) \
             $(TESTS) $(UTILS)
DIST_NAME  = eplain-$(VERSION)

TAR_FLAGS  = 
GZIP_FLAGS = 


.PHONY: default alldoc doc dvi pdf html info btxdoc dist
.PHONY: clean mostlyclean distclean maintainer-clean
.DELETE_ON_ERROR:


default: eplain.tex

eplain.tex: merge $(SOURCES)
	version=$(VERSION) ./merge

etex.fmt: eplain.tex
	rm -f etex.aux
	cp /dev/null etex.aux
	initex \&plain etex | grep -v '^\\font'


alldoc:
	cd doc && make

doc:
	cd doc && make doc

dvi:
	cd doc && make dvi

pdf:
	cd doc && make pdf

html:
	cd doc && make html

info doc/eplain.info:
	cd doc && make info

btxdoc:
	cd doc && make btxdoc

INSTALL:
	cd doc && make ../INSTALL


dist: $(DIST_FILES)
	@rm -rf $(DIST_NAME)
	@echo D $(DIST_NAME)
	@mkdir $(DIST_NAME)
	@for file in $(DIST_FILES); do \
	  echo A $(DIST_NAME)/$$file; \
	  cp --parents $$file $(DIST_NAME); \
	done
	@echo C $(DIST_NAME).tar.gz
	@tar -c $(TAR_FLAGS) $(DIST_NAME) | gzip $(GZIP_FLAGS) > $(DIST_NAME).tar.gz
	@rm -rf $(DIST_NAME)


define clean-cmds
rm -rf $(DIST_NAME) etex.aux etex.log
endef

define distclean-cmds
$(clean-cmds)
rm -f etex.fmt $(DIST_NAME).tar.gz
endef

define maintainer-clean-cmds
$(distclean-cmds)
rm -f eplain.tex
endef

clean mostlyclean:
	$(clean-cmds)
	cd doc && make $@

distclean:
	$(distclean-cmds)
	cd doc && make distclean

maintainer-clean:
	$(maintainer-clean-cmds)
	cd doc && make maintainer-clean