Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, March 28, 2024

File: [Platon] / vimconfig / Makefile (download)

Revision 1.22, Fri Aug 9 00:17:41 2002 UTC (21 years, 7 months ago) by rajo


Changes since 1.21: +2 -2 lines

Changed version of template plugin from 1.7-2.unstable to 1.7.

# Makefile for creating distribution of vim configfiles.
# Type 'make dist' for create tar-gziped and zip archiv. 

#
# (c) rajo <host8@kepler.fmph.uniba.sk>
#

# $Id: Makefile,v 1.22 2002/08/09 00:17:41 rajo Exp $

PACKAGE = vimconfig
VERSION = 1.7
PACKAGE_TEMPLATE_PLUGIN = templatefile
VERSION_TEMPLATE_PLUGIN = 1.7

DISTFILES_TEMPLATE_PLUGIN = vim \
                        vim/plugin \
                        vim/plugin/templatefile.vim \
                        vim/templates/ \
                        vim/templates/skel.c \
                        vim/templates/skel.h \
                        vim/templates/skel.sh \
                        vim/templates/Makefile

DISTFILES = README FEATURES.txt tags \
            Makefile vimrc gvimrc vim \
            vim/strace.vim \
            vim/csyntax.vim \
            vim/latextags \
            vim/vimlatex \
            vim/compiler \
            vim/compiler/tex.vim \
            vim/ftplugin \
            vim/ftplugin/cvs.vim \
            vim/ftplugin/html.vim \
            vim/ftplugin/mail.vim \
            vim/ftplugin/miktexmenus.vim \
            vim/ftplugin/perl.vim \
            vim/ftplugin/sgml.vim \
            vim/ftplugin/tex.vim \
            vim/ftplugin/vim.vim \
            vim/indent/ \
            vim/indent/php.vim \
            vim/indent/tex.vim \
            vim/plugin \
            vim/plugin/CmdlineCompl.vim \
            vim/plugin/calendar.vim \
            vim/plugin/imaps.vim \
            vim/plugin/increment.vim \
            vim/plugin/matchit.vim \
            vim/plugin/syntaxFolds.vim \
            vim/syntax/ \
            vim/syntax/FEATURES.vim \
            $(DISTFILES_TEMPLATE_PLUGIN)

TAR      = tar
ZIP      = zip

ZIP_ENV  = -r9
GZIP_ENV = --best

LN_S     = ln -s


srcdir = .
distdir = $(PACKAGE)-$(VERSION)
distdir_template_plugin = $(PACKAGE_TEMPLATE_PLUGIN)-$(VERSION_TEMPLATE_PLUGIN)
top_distdir = $(distdir)
top_builddir = .

#########
# Targets

all: tags dist dist-template-plugin

clean: clean-dist clean-dist-template-plugin clean-tags

tags: *.txt
    vim -c ":helptags ." -c ":q"

clean-tags:
    rm -f tags

clean-dist: clean-dist-template-plugin
    -rm -rf $(distdir)
    -rm -f $(distdir).tar.gz $(distdir).zip

clean-dist-template-plugin:
    -rm -rf $(distdir_template_plugin)
    -rm -f $(distdir_template_plugin).tar.gz $(distdir_template_plugin).zip

# Distribution of template plugin {{{
dist-template-plugin: distdir_template_plugin
    GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir_template_plugin).tar.gz $(distdir_template_plugin)
    ZIP=$(ZIP_ENV) $(ZIP) $(distdir_template_plugin).zip $(distdir_template_plugin)
    -rm -rf $(distdir_template_plugin)

dist-template-plugin-all: distdir_template_plugin
    GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir_template_plugin).tar.gz $(distdir_template_plugin)
    ZIP=$(ZIP_ENV) $(ZIP) $(distdir_template_plugin).zip $(distdir_template_plugin)
    -rm -rf $(distdir_template_plugin)

distdir_template_plugin: $(DISTFILES_TEMPLATE_PLUGIN)
    -rm -rf $(distdir_template_plugin)
    mkdir $(distdir_template_plugin)
    @here=`cd $(top_builddir) && pwd`; \
    top_distdir_template_plugin=`cd $(distdir_template_plugin) && pwd`; \
    distdir_template_plugin=`cd $(distdir_template_plugin) && pwd`;
    @FILES=`echo "$(DISTFILES_TEMPLATE_PLUGIN)" | awk 'BEGIN{RS=" "}{print}' | sort -u`; \
    for file in $$FILES; do \
      d=$(srcdir); \
      if test -d $$d/$$file; then \
        mkdir $(distdir_template_plugin)/$$file; \
      else \
        test -f $(distdir_template_plugin)/$$file \
        || ln $$d/$$file $(distdir_template_plugin)/$$file 2> /dev/null \
        || cp -p $$d/$$file $(distdir_template_plugin)/$$file || :; \
      fi; \
    done
# }}} Distribution of template plugin

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

install:
    @here=`pwd`; \
    backup="bak.`date \"+%y%m%d\"`"; \
    if [ -d $$HOME/.vim -o -L $$HOME/.vim ]; then \
        if [ -d $$HOME/.vim\-$$backup -o -L $$HOME/.vim\-$$backup ]; then \
            echo "Moving           $$HOME/.vim    --->   $$HOME/.vim-`date \"+%y%m%d-%X\"`"; \
            mv $$HOME/.vim $$HOME/.vim-`date "+%y%m%d-%X"` ; \
            echo "Creating symlink $$HOME/.vim    --->   $$here/vim"; \
            $(LN_S) $$here/vim $$HOME/.vim; \
        else \
            echo "Moving           $$HOME/.vim    --->   $$HOME/.vim-$$backup"; \
            mv $$HOME/.vim $$HOME/.vim-$$backup; \
            echo "Creating symlink $$HOME/.vim    --->   $$here/vim"; \
            $(LN_S) $$here/vim $$HOME/.vim; \
        fi \
    else \
        echo "Creating symlink $$HOME/.vim    --->   $$here/vim"; \
        $(LN_S) $$here/vim $$HOME/.vim; \
    fi; \
    for file in vimrc gvimrc; do \
        if [ -f $$HOME/.$$file -o -L $$HOME/.$$file ]; then \
            if [ -f $$HOME/.$$file\-$$backup -o -L $$HOME/.$$file\-$$backup ]; then \
                echo "Moving           $$HOME/.$$file    --->   $$HOME/.$$file-`date \"+%y%m%d-%X\"`"; \
                mv $$HOME/.$$file $$HOME/.$$file-`date "+%y%m%d-%X"` ; \
                echo "Creating symlink $$HOME/.$$file    --->   $$here/$$file"; \
                $(LN_S) $$here/$$file $$HOME/.$$file; \
            else \
                echo "Moving           $$HOME/.$$file    --->   $$HOME/.$$file-$$backup"; \
                mv $$HOME/.$$file $$HOME/.$$file-$$backup; \
                echo "Creating symlink $$HOME/.$$file    --->   $$here/$$file"; \
                $(LN_S) $$here/$$file $$HOME/.$$file; \
            fi \
        else \
            echo "Creating symlink $$HOME/.$$file    --->   $$here/$$file"; \
            $(LN_S) $$here/$$file $$HOME/.$$file; \
        fi; \
    done

uninstall:
    @echo "Please remove instalation files manualy:"; \
     echo "    $$HOME/.vim"; \
     echo "    $$HOME/.vimrc"; \
     echo "    $$HOME/.gvimrc";

# Modeline {{{
# vim:set ts=4:
# vim600:fdm=marker fdl=0 fdc=3 vb t_vb=:
# }}}

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top