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

Diff of /trunk/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 71 by Vincent, Thu Sep 28 21:12:16 2017 UTC revision 72 by vincentb1, Mon Feb 19 21:54:52 2018 UTC
# Line 8  Line 8 
8  SCRIPTS:=scripts/$(PKG)  SCRIPTS:=scripts/$(PKG)
9  ANTI_SCRIPTS:=../..  ANTI_SCRIPTS:=../..
10  READMEFILE:=README.org  READMEFILE:=README.org
11    # Set to 0 to bypass check_vc target
12    CHECK_VC_STATUS?=-1
13    MAKELEVELBASE?=0
14  MAKEDTX:=scripts/makedtx/makedtx  MAKEDTX:=scripts/makedtx/makedtx
15  # .ins must be in first place  # .ins must be in first place
16  DTXFILES:=$(PKG).ins $(PKG).dtx  DTXFILES:=$(PKG).ins $(PKG).dtx
17  DTXSOURCE:=$(DIST)/dtxsource  DTXSOURCE:=$(DIST)/dtxsource
18  ANTI_DTXSOURCE:=../$(ANTI_DIST)  ANTI_DTXSOURCE:=../$(ANTI_DIST)
19  DOCFILES:=CHANGES.org $(PKG).tex $(PKG)-version.tex $(READMEFILE) latexmkrc.pl  DOCFILES:=CHANGES.org $(PKG).tex $(PKG)-version.tex $(READMEFILE) latexmkrc.pl
20    CTANTAG?=svn copy svn+ssh://vincentb1@svn.gnu.org.ua/latex-makedtx/trunk svn+ssh://vincentb1@svn.gnu.org.ua/latex-makedtx/tags/ctan$(VERSION) -m "CTAN delivery $(DATE)"
21    
22  PACKED_DOCFILES:=$(DOCFILES)  PACKED_DOCFILES:=$(DOCFILES)
23  $(foreach EXCLUDE,$(PKG).tex $(READMEFILE),\  $(foreach EXCLUDE,$(PKG).tex $(READMEFILE),\
# Line 31  Line 35 
35  dist: $(addprefix $(DIST)/,$(DTXFILES))  dist: $(addprefix $(DIST)/,$(DTXFILES))
36    
37  .PHONY: ctan  .PHONY: ctan
38  ctan: $(DIST)/$(PKG).zip  ctan: check_vc $(DIST)/$(PKG).zip
39    
40    .PHONY: test
41    test:
42            $(MAKE) -C test
43    
44  $(addprefix $(DIST)/,$(DTXFILES)) : $(addprefix $(DTXSOURCE)/,$(DOCFILES) $(PKG).pl createdtx.sty) $(DTXSOURCE)  $(addprefix $(DIST)/,$(DTXFILES)) : $(addprefix $(DTXSOURCE)/,$(DOCFILES) $(PKG).pl createdtx.sty) $(DTXSOURCE)
45          cd $(DTXSOURCE); \          cd $(DTXSOURCE); \
# Line 155  Line 163 
163          $(MAKE) -C $(DOC) realclean          $(MAKE) -C $(DOC) realclean
164          $(MAKE) -C test realclean          $(MAKE) -C test realclean
165    
166    
167    # Check that everything is committed
168    .PHONY: check_vc
169    check_vc:
170            @if svn status | awk 'BEGIN { es=1; }; /^[MAC] / { es=0; }; END { exit(es) }'; \
171            then \
172                    echo "Uncommitted changes" 2> /dev/stderr; \
173                    exit $(CHECK_VC_STATUS); \
174            fi
175    
176    
177    .PHONY: ctantag
178    ctantag: check_vc scripts/makedtx/makedtx doc/support/makedtx/makedtx.tex
179    ifeq ($(MAKELEVEL),$(MAKELEVELBASE))
180            @$(MAKE) $@ \
181                    VERSION=$(shell perl scripts/makedtx/makedtx --version | sed -e 's/makedtx version \([0-9]\+\.[0-9]\+[a-z]*\)/\1/1' ) \
182                    DATE=$(shell awk 'BEGIN { FS="[{}]" }; /^ *\\DTMsavedate{makedtx-date}/ { print $$4; exit}' doc/support/makedtx/makedtx.tex)
183    else
184            @echo 'Do the following command:'
185            @echo '$(CTANTAG)'
186            @select w in oui non; \
187            do \
188                    case $$w in \
189                            oui) \
190                                    $(CTANTAG); \
191                                    break;; \
192                            non) \
193                                    echo 'abandon'; \
194                                    break;; \
195                    esac; \
196            done
197    endif

Legend:
Removed from v.71  
changed lines
  Added in v.72

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