summaryrefslogtreecommitdiff
path: root/Makefile.tpl
diff options
context:
space:
mode:
authorygribov <ygribov@138bc75d-0d04-0410-961f-82ee72b054a4>2014-12-09 13:45:47 +0000
committerygribov <ygribov@138bc75d-0d04-0410-961f-82ee72b054a4>2014-12-09 13:45:47 +0000
commitd10a337d4ea0fd41ae33623ce9f1509656f86808 (patch)
treecf4befdca797feb9f6af158c5d349371f9d662ca /Makefile.tpl
parent1e25901c4a126d58c1342b78d34003d369d2e6a2 (diff)
downloadgcc-d10a337d4ea0fd41ae33623ce9f1509656f86808.tar.gz
Local Vim config with GNU formatting.
2014-12-09 Laurynas Biveinis <laurynas.biveinis@gmail.com> Yury Gribov <y.gribov@samsung.com> / * .gitignore: Added .local.vimrc and .lvimrc. * Makefile.tpl (vimrc, .lvimrc, .local.vimrc): New targets. * Makefile.in: Regenerate. contrib/ * vimrc: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218514 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'Makefile.tpl')
-rw-r--r--Makefile.tpl12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile.tpl b/Makefile.tpl
index 884e02db9af..dcbc6b1b143 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -861,6 +861,18 @@ mail-report-with-warnings.log: warning.log
chmod +x $@
echo If you really want to send e-mail, run ./$@ now
+# Local Vim config
+
+$(srcdir)/.local.vimrc:
+ $(LN_S) $(srcdir)/contrib/vimrc $@
+
+$(srcdir)/.lvimrc:
+ $(LN_S) $(srcdir)/contrib/vimrc $@
+
+vimrc: $(srcdir)/.local.vimrc $(srcdir)/.lvimrc
+
+.PHONY: vimrc
+
# Installation targets.
.PHONY: install uninstall