Skip to content
This repository has been archived by the owner on Jun 20, 2021. It is now read-only.

Commit

Permalink
Generating VBA with package version.
Browse files Browse the repository at this point in the history
  • Loading branch information
lpenz committed Feb 1, 2010
1 parent fee5426 commit 81f04ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,4 +1,4 @@
vimcommander.vba
*.vba
doc/
plugin/

12 changes: 8 additions & 4 deletions Makefile
@@ -1,9 +1,10 @@

PLUGIN = vimcommander
SOURCE += doc/vimcommander.txt
SOURCE += plugin/vimcommander.vim
PROGRAM_NAME = "vimcommander"
PROGRAM_VERSION = "0.78"
NAME = $(patsubst "%",%,$(PROGRAM_NAME))
VERS = $(patsubst "%",%,$(PROGRAM_VERSION))


all: $(SOURCE)
Expand All @@ -17,12 +18,15 @@ plugin/vimcommander.vim: vimcommander.vim
mkdir -p $(dir $@); sed 's/\$$VERSION/$(PROGRAM_VERSION)/g' $^ > $@


${PLUGIN}.vba: ${SOURCE}
vim -X --cmd 'let g:plugin_name="${PLUGIN}"' -s build.vim > /dev/null
vba: $(NAME)_$(VERS).vba


$(NAME)_$(VERS).vba: $(SOURCE)
vim -X --cmd 'let g:plugin_name="$@"' -s build.vim > /dev/null


clean:
rm -f ${PLUGIN}.vba $(SOURCE)
rm -f $(NAME)_$(VERS).vba $(SOURCE)
-rmdir doc plugin


0 comments on commit 81f04ec

Please sign in to comment.