Rev 11871 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
# default target builds indicesDOS=# -dosnames # for file-name mappingPERL=perlCAT=catCP=cpRM=rmMKDIR=mkdirRHOME=$(shell cd ../../..; perl src/gnuwin32/pwd.pl)# must be absolute pathPKGDIR=../../libraryRLIB=$(RHOME)/libraryindices:PERL5LIB=$(RHOME)/share/perl $(PERL) build.help ${DOS} -htmllistspkg-% help-%:PERL5LIB=$(RHOME)/share/perl $(PERL) build.help ${DOS} -txt -html -example -latex $(PKGDIR)/$* $(RLIB)chm-%:PERL5LIB=$(RHOME)/share/perl $(PERL) build.help ${DOS} -chm $(PKGDIR)/$* $(RLIB)# hhc always gives an error code$(MAKE) --no-print-directory -C $(PKGDIR)/$*/chm -f $(RHOME)/src/gnuwin32/help/Makefile $*.chm$(MKDIR) -p $(RLIB)/$*/chtml$(CP) $(PKGDIR)/$*/chm/$*.chm $(RLIB)/$*/chtmlwinhlp-%: chm-%$(MAKE) --no-print-directory -C $(PKGDIR)/$*/chm -f $(RHOME)/src/gnuwin32/help/Makefile $*.hlp$(MKDIR) -p $(RLIB)/$*/winhlp$(CP) $(PKGDIR)/$*/chm/$*.cnt $(PKGDIR)/$*/chm/$*.hlp $(RLIB)/$*/winhlp# need not have HTML installed when building packagescontents-%:$(PERL) Rd2contents $(PKGDIR)/$* $(RLIB)/$*/CONTENTS@$(MKDIR) -p $(RHOME)/doc/html/search$(CAT) $(RHOME)/library/*/CONTENTS > $(RHOME)/doc/html/search/index.txtPERL5LIB=$(RHOME)/share/perl $(PERL) build.help ${DOS} -htmllistsziphelp-%:@$(MAKE) --no-print-directory -C $(RLIB)/$* -f $(RHOME)/src/gnuwin32/help/Makefile ZIPFLAGS=jqX PKG=$* zipitziponlyhelp-%:@$(MAKE) --no-print-directory -C $(RLIB)/$* -f $(RHOME)/src/gnuwin32/help/Makefile ZIPFLAGS=jqmX PKG=$* zipitwinhelp-%:$(MAKE) --no-print-directory -C $(PKGDIR)/$* -f $(RHOME)/src/gnuwin32/help/Makefile PKG=$* winlatex-%:@$(MAKE) --no-print-directory -C $(RLIB)/$* -f $(RHOME)/src/gnuwin32/help/Makefile PKG=$* unzipitPERL5LIB=$(RHOME)/share/perl $(PERL) build.help ${DOS} -latex $(PKGDIR)/$*clean:$(RM) -fr *~ *.o *.obj *.dll *.def *.a# to be run from src/library/pkg/chmHTM = $(filter-out 00Index.html, $(wildcard *.html))%.chm: $(HTM) Rchm.css logo.jpg-hhc $*.hhp%.hlp: %.rtf logo.bmphcrtf /x $*.hpj%.rtf: $(HTM)perl $(RHOME)/share/perl/hhw-to-rtf.pl $*.hhpRchm.css: $(RHOME)/src/gnuwin32/help/Rchm.css$(CP) $^ $@logo.jpg: $(RHOME)/doc/html/logo.jpg$(CP) $^ $@logo.bmp: $(RHOME)/src/gnuwin32/help/logo.bmp$(CP) $^ $@# following are designed to be run from the library/pkg directory:zipit: help/Rhelp.zip zipupunzipit:-@$(MAKE) --no-print-directory -C latex -f $(RHOME)/src/gnuwin32/help/Makefile uz-Rhelphelp/Rhelp.zip: $(wildcard ../../src/library/$(PKG)/man/*.Rd \../../src/library/$(PKG)/man/windows/*.Rd)-@$(MAKE) --no-print-directory -C help -f $(RHOME)/src/gnuwin32/help/Makefile uz-Rhelp-@$(MAKE) --no-print-directory -C R-ex -f $(RHOME)/src/gnuwin32/help/Makefile uz-Rex-@$(MAKE) --no-print-directory -C latex -f $(RHOME)/src/gnuwin32/help/Makefile uz-Rhelp-$(MAKE) --no-print-directory -C $(RHOME)/src/gnuwin32/help help-$(PKG)@$(RM) -f help/Rhelp.zip latex/Rhelp.zip R-ex/Rex.zipzipup:-zip -${ZIPFLAGS} help/Rhelp help/* -x help/00Titles help/AnIndex 2> nul-zip -${ZIPFLAGS} R-ex/Rex R-ex/*.R 2> nul-zip -${ZIPFLAGS} latex/Rhelp latex/*.tex 2> nuluz-%:@if test -f $*.zip ; then \unzip -qou $*; \fi