/ [latex-lettre] / trunk / makefile
To checkout: svn checkout http://svn.gnu.org.ua/sources/latex-lettre/trunk/makefile
Puszcza

Contents of /trunk/makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 255 - (show annotations)
Thu Mar 5 21:52:25 2020 UTC (14 months ago) by vincentb1
File size: 3883 byte(s)
Compile le manuel à partir du lettre.dtx pour la distribution DISTTYPE=dtx


1 PACKAGE_NAME:=lettre
2 TEXMF_INSTALL_DIR?=$(HOME)/texmf
3 CTANTAG?=svn copy svn+ssh://vincentb1@svn.gnu.org.ua/latex-lettre/trunk svn+ssh://vincentb1@svn.gnu.org.ua/latex-lettre/tags/ctan$(VERSION) -m "Livraison au CTAN $(DATE)"
4 VERSION_M4:=doc/latex/$(PACKAGE_NAME)/version.m4
5
6 include doc/latex/$(PACKAGE_NAME)/$(PACKAGE_NAME)-makedefinitions.mak
7
8 .PHONY: ctan
9 ctan: dist_forge/$(DISTTYPE)/$(PACKAGE_NAME).zip
10
11 .PHONY: ctantag
12 ctantag: version_m4
13 ifeq ($(MAKELEVEL),$(MAKELEVELBASE))
14 $(MAKE) $@ \
15 VERSION=$(shell echo lt_version | m4 $(VERSION_M4) -) \
16 DATE=$(shell echo lt_date_iso | m4 $(VERSION_M4) -)
17 else
18 @echo 'Effectuer la commande suivante:'
19 @echo '$(CTANTAG)'
20 @select w in oui non; \
21 do \
22 case $$w in \
23 oui) \
24 $(CTANTAG); \
25 break;; \
26 non) \
27 echo 'abandon'; \
28 break;; \
29 esac; \
30 done
31 endif
32
33 .PHONY: install
34 install: install$(DISTTYPE)
35
36 INSTALL_DEP:=dist_forge/$(DISTTYPE)/$(PACKAGE_NAME).zip \
37 $(TEXMF_INSTALL_DIR)/tex/latex/$(PACKAGE_NAME)\
38 $(TEXMF_INSTALL_DIR)/doc/latex/$(PACKAGE_NAME)
39
40 .PHONY: installplain
41 installplain: $(INSTALL_DEP)
42 unzip -uo $< $(addprefix $(PACKAGE_NAME)/,$(STYFILES)) -d $(TEXMF_INSTALL_DIR)/tex/latex
43 unzip -uo $< $(addprefix $(PACKAGE_NAME)/,$(DOC)) -d $(TEXMF_INSTALL_DIR)/doc/latex
44
45 DTX_BUILDDIR:=dist_forge/dtx/builddir
46 .PHONY: installdtx
47 installdtx: $(INSTALL_DEP) $(addprefix $(DTX_BUILDDIR)/,$(DOC) $(STYFILES)) $(DTX_BUILDDIR)
48 for w in $(addprefix $(DTX_BUILDDIR)/,$(DOC)); \
49 do cp $$w $(TEXMF_INSTALL_DIR)/doc/latex/$(PACKAGE_NAME); \
50 done
51 for w in $(addprefix $(DTX_BUILDDIR)/,$(STYFILES)); \
52 do cp $$w $(TEXMF_INSTALL_DIR)/tex/latex/$(PACKAGE_NAME); \
53 done
54
55 $(addprefix $(DTX_BUILDDIR)/,$(DOC) $(STYFILES)): dist_forge/dtx/$(PACKAGE_NAME)/$(PACKAGE_NAME).dtx \
56 $(DTX_BUILDDIR)
57 cp $< $(DTX_BUILDDIR)
58 cd $(DTX_BUILDDIR); latex $(PACKAGE_NAME).dtx
59 cd $(DTX_BUILDDIR); latexmk -norc -r latexmkrc.pl
60
61 dist_forge/dtx/$(PACKAGE_NAME)/$(PACKAGE_NAME).dtx: dist_forge/$(PACKAGE_NAME)-dtx.m4
62 $(MAKE) -C dist_forge dtx/$(PACKAGE_NAME)/$(PACKAGE_NAME).dtx
63
64 $(DTX_BUILDDIR):
65 mkdir -p $@
66
67 .PHONY: uninstall
68 uninstall:
69 for w in tex doc; do rm -fr $(TEXMF_INSTALL_DIR)/$$w/latex/$(PACKAGE_NAME); done
70
71 $(patsubst %, $(TEXMF_INSTALL_DIR)/%/latex/$(PACKAGE_NAME),tex doc):%:
72 mkdir -p $@
73
74 dist_forge/$(DISTTYPE)/$(PACKAGE_NAME).zip: $(addprefix tex/latex/$(PACKAGE_NAME)/,$(STYFILES)) \
75 $(addprefix doc/latex/$(PACKAGE_NAME)/,$(DOCSRC)) \
76 $(patsubst %,doc/latex/$(PACKAGE_NAME)/readme/%.m4,$(README)) \
77 version_m4
78 $(MAKE) -C dist_forge $(DISTTYPE)dist MAKELEVELBASE=$(shell expr $(MAKELEVEL) + 1) \
79 VERSION=$(shell echo lt_version | m4 $(VERSION_M4) -)
80
81 $(addprefix doc/latex/$(PACKAGE_NAME)/,$(DOCPDF)):%.pdf: \
82 $(addprefix doc/latex/$(PACKAGE_NAME)/,$(DOCSRC)) \
83 $(addprefix tex/latex/$(PACKAGE_NAME)/,$(STYFILES_INDOC)) \
84 version_m4
85 $(MAKE) -C $(dir $@) $(notdir $@) MAKELEVELBASE=$(shell expr $(MAKELEVEL) + 1) \
86 VERSION=$(shell echo lt_version | m4 $(VERSION_M4) -)
87
88 doc/latex/$(PACKAGE_NAME)/lettre-path.tex: version_m4
89 $(MAKE) -C $(dir $@) $(notdir $@) MAKELEVELBASE=$(shell expr $(MAKELEVEL) + 1) \
90 VERSION=$(shell echo lt_version | m4 $(VERSION_M4) -)
91
92 $(addprefix doc/latex/$(PACKAGE_NAME)/, $(SCRIPTOUT_SRC)): tex/latex/$(PACKAGE_NAME)/lettre.cls \
93 doc/latex/$(PACKAGE_NAME)/lettre-script.tex
94 $(MAKE) -C $(dir $@) $(notdir $@) MAKELEVELBASE=$(shell expr $(MAKELEVEL) + 1)
95
96
97 .PHONY: version_m4
98 version_m4: $(VERSION_M4)
99
100 $(VERSION_M4): doc/latex/$(PACKAGE_NAME)/release-notes
101 $(MAKE) -C $(dir $@) $(notdir $@) MAKELEVELBASE=$(shell expr $(MAKELEVEL) + 1)
102
103 .PHONY: clean mostlyclean
104 clean mostlyclean:
105 $(MAKE) -C dist_forge clean
106 $(MAKE) -C doc/latex/$(PACKAGE_NAME) clean
107
108 .PHONY: realclean squeaky
109 realclean squeaky:
110 $(MAKE) -C dist_forge squeaky
111 $(MAKE) -C doc/latex/$(PACKAGE_NAME) squeaky
112 $(MAKE) -C test realclean
113
114 .PHONY: test
115 test:
116 $(MAKE) -C test

Properties

Name Value
svn:eol-style native

Send suggestions and bug reports to Sergey Poznyakoff
ViewVC Help
Powered by ViewVC 1.1.20