| version 1.1, 2002/04/03 17:17:50 |
version 1.2, 2002/04/03 19:28:09 |
|
|
| # Makefile for the Vim documentation on Unix vim:ts=4 |
# Makefile for the Vim documentation on Unix vim:ts=4 |
| # vim600:fdm=marker fdl=0 fdc=3: |
# vim600:fdm=marker fdl=0 fdc=3: |
| # |
# |
| # If you get "don't know how to make scratch", first run make in the source |
|
| # directory. Or remove the include below. |
# |
| |
# Copyright (c) 2002 Platon software development group http://www.platon.sk/projects/ |
| |
# |
| |
|
| |
# $Id$ |
| |
|
| AWK = awk |
AWK = awk |
| DVIPS = dvips |
DVIPS = dvips |
|
|
| LN = ln -s |
LN = ln -s |
| GV = gv |
GV = gv |
| |
|
| |
#TAR = gtar |
| |
TAR = tar |
| |
ZIP = zip |
| |
ZIP_ENV = -r9 |
| |
GZIP_ENV = --best |
| |
|
| |
PACKAGE = vimdoc |
| |
VERSION = 1.0 |
| |
|
| |
srcdir = . |
| |
distdir = $(PACKAGE)-$(VERSION) |
| |
top_distdir = $(distdir) |
| |
top_builddir = . |
| |
|
| |
|
| # Name of Vim PostScript manual |
# Name of Vim PostScript manual |
| VIMMANUAL_PS = latex/vimmanual.ps |
VIMMANUAL_PS = latex/vimmanual.ps |
| # Name of LaTeX source of Vim documentation |
# Name of LaTeX source of Vim documentation |
|
|
| latex/workshop.tex |
latex/workshop.tex |
| # }}} HTMLS |
# }}} HTMLS |
| |
|
| |
# DISTFILES {{{ |
| |
DISTFILES = Makefile \ |
| |
doctags.c \ |
| |
makehtml.awk \ |
| |
makelatex.awk \ |
| |
maketags.awk \ |
| |
vim.sty \ |
| |
vim2html.pl \ |
| |
vimmanual.tex \ |
| |
txt/ \ |
| |
man/ \ |
| |
man/evim.1 \ |
| |
man/help.txt.info \ |
| |
man/vim.1 \ |
| |
man/vim.man.info \ |
| |
man/vimdiff.1 \ |
| |
man/vimtutor.1 \ |
| |
man/xxd.1 |
| |
|
| |
# }}} DISTFILES |
| |
|
| .SUFFIXES: |
.SUFFIXES: |
| .SUFFIXES: .c .o .txt .html |
.SUFFIXES: .c .o .txt .html |
| |
|
| Line 457 perlhtml: tags $(DOCS) |
|
| Line 497 perlhtml: tags $(DOCS) |
|
| ./vim2html.pl tags $(DOCS) |
./vim2html.pl tags $(DOCS) |
| |
|
| clean: clean-all |
clean: clean-all |
| clean-all: clean-html clean-man clean-latex |
clean-all: clean-html clean-man clean-latex clean-dist |
| -rm -f doctags tags.ref tags |
-rm -f doctags tags.ref tags |
| clean-html: |
clean-html: |
| -rm -rf html/ |
-rm -rf html/ |
|
|
| done \ |
done \ |
| done |
done |
| |
|
| |
|
| |
|
| view: $(VIMMANUAL_PS) |
view: $(VIMMANUAL_PS) |
| $(GV) $(VIMMANUAL_PS) & |
$(GV) $(VIMMANUAL_PS) & |
| |
|
| |
# Distribution {{{ |
| |
|
| |
clean-dist: |
| |
-rm -rf $(distdir) |
| |
-rm -f $(distdir).tar.gz $(distdir).zip |
| |
|
| |
dist: distdir |
| |
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) |
| |
ZIP=$(ZIP_ENV) $(ZIP) $(distdir).zip $(distdir) |
| |
-rm -rf $(distdir) |
| |
|
| |
dist-all: distdir |
| |
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) |
| |
ZIP=$(ZIP_ENV) $(ZIP) $(distdir).zip $(distdir) |
| |
-rm -rf $(distdir) |
| |
|
| |
distdir: $(DISTFILES) |
| |
-rm -rf $(distdir) |
| |
mkdir $(distdir) |
| |
@here=`cd $(top_builddir) && pwd`; \ |
| |
top_distdir=`cd $(distdir) && pwd`; \ |
| |
distdir=`cd $(distdir) && pwd`; |
| |
@FILES=`echo "$(DISTFILES)" | awk 'BEGIN{RS=" "}{print}' | sort -u`; \ |
| |
for file in $$FILES; do \ |
| |
d=$(srcdir); \ |
| |
if test -d $$d/$$file; then \ |
| |
mkdir $(distdir)/$$file; \ |
| |
else \ |
| |
test -f $(distdir)/$$file \ |
| |
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \ |
| |
|| cp -p $$d/$$file $(distdir)/$$file || :; \ |
| |
fi; \ |
| |
done |
| |
|
| |
# }}} Distribution |
| |
|
| |
|
| # |
# |
| # Some of doc files may not be found, create empy: |
# Some of doc files may not be found, create empy: |
| # |
# |