Author: dylan
Date: 2005-01-25 22:34:33 -0500 (Tue, 25 Jan 2005)
New Revision: 614
Modified:
trunk/dev-tools/vim-automod/Makefile
Log:
added a "make dist" action. Just for kicks.
Modified: trunk/dev-tools/vim-automod/Makefile
===================================================================
--- trunk/dev-tools/vim-automod/Makefile 2005-01-26 03:20:22 UTC (rev
613)
+++ trunk/dev-tools/vim-automod/Makefile 2005-01-26 03:34:33 UTC (rev
614)
@@ -1,4 +1,5 @@
+VERSION = 0.50
SCRIPT = perl_automod.vim
TEMPLATE = template.pm
VIMDIR ?= $(HOME)/.vim
@@ -6,7 +7,12 @@
SCRIPT_INSTALLED := $(VIMDIR)/ftplugin/$(SCRIPT)
TEMPLATE_INSTALLED := $(VIMDIR)/templates/$(TEMPLATE)
+ifndef PWD
+PWD = $(shell pwd)
+endif
+DIR := $(notdir $(PWD))
+FILE = $(DIR)-$(VERSION).tar.bz2
install: $(SCRIPT_INSTALLED) $(TEMPLATE_INSTALLED)
@if ! grep -q 'call PerlModuleNewFile' ~/.vimrc ; then \
@@ -22,10 +28,13 @@
install -D $< $@
clean:
- rm $(SCRIPT)
+ rm -f $(SCRIPT)
+dist: clean
+ @echo tar -C .. -jcvf $(FILE) $(DIR)
+
uninstall: clean
- rm $(SCRIPT_INSTALLED) $(TEMPLATE_INSTALLED)
+ rm -f $(SCRIPT_INSTALLED) $(TEMPLATE_INSTALLED)
%.vim: %.vim.m4 Makefile