summaryrefslogtreecommitdiff
path: root/vim-latex/Makefile
diff options
context:
space:
mode:
authorDavid Kaufmann <astra@fsinf.at>2011-11-14 00:13:19 +0100
committerDavid Kaufmann <astra@fsinf.at>2011-11-14 00:13:19 +0100
commit14d64785aaac4bb792f31c2fafb7332b74612c9f (patch)
tree77db363a3c174a4a3c1a6f183759de69905b70e3 /vim-latex/Makefile
downloadconfig-14d64785aaac4bb792f31c2fafb7332b74612c9f.tar.gz
init copy
Diffstat (limited to 'vim-latex/Makefile')
-rw-r--r--vim-latex/Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/vim-latex/Makefile b/vim-latex/Makefile
new file mode 100644
index 0000000..2357024
--- /dev/null
+++ b/vim-latex/Makefile
@@ -0,0 +1,29 @@
+PREFIX=/usr/local
+VIMDIR=$(PREFIX)/share/vim
+BINDIR=$(PREFIX)/bin
+
+VERSION=1.8.23
+DATE=$(shell date +%Y%m%d)
+COMMIT_COUNT=$(shell git log --oneline | wc -l)
+ABBREV_HASH=$(shell git log --oneline | head -n 1 | cut -d\ -f 1)
+
+SNAPSHOTNAME=vim-latex-$(VERSION)-$(DATE).$(COMMIT_COUNT)-git$(ABBREV_HASH)
+
+snapshot:
+ git archive --prefix '$(SNAPSHOTNAME)/' HEAD | gzip > '$(SNAPSHOTNAME).tar.gz'
+
+install:
+ install -d '$(DESTDIR)$(VIMDIR)/doc'
+ install -m 0644 doc/*.txt '$(DESTDIR)$(VIMDIR)/doc'
+
+ install -d '$(DESTDIR)$(VIMDIR)'
+ cp -R compiler ftplugin indent plugin '$(DESTDIR)$(VIMDIR)'
+ chmod 0755 '$(DESTDIR)$(VIMDIR)/ftplugin/latex-suite/outline.py'
+
+ install -d '$(DESTDIR)$(BINDIR)'
+ install latextags ltags '$(DESTDIR)$(BINDIR)'
+
+upload: snapshot
+ scp '$(SNAPSHOTNAME).tar.gz' frs.sourceforge.net:/home/frs/project/v/vi/vim-latex/snapshots
+
+.PHONY: install upload