Skip to content
Browse files

dont recreate sparkup.txt unless out-of-date

  • Loading branch information...
1 parent 68f1c7f commit 9d1abd3b830e4ef93013ba27203b1800fee82449 @nixon nixon committed
Showing with 6 additions and 4 deletions.
  1. +6 −4 Makefile
View
10 Makefile
@@ -34,13 +34,15 @@ generic:
textmate:
#cp ${README} TextMate/sparkup-readme.txt
-vim:
- mkdir -p vim/doc
- # Add asteriks to title, so it gets matched by `:helptags`
- sed '1s/.*/*\0*/' ${README} > vim/doc/sparkup.txt
+vim: vim/doc/sparkup.txt
# create pathogen friendly structure
vim-pathogen: vim ftplugin doc
ftplugin doc:
ln -s vim/$@
+
+# Add asterisks to title, so it gets matched by `:helptags`
+vim/doc/sparkup.txt: ${README}
+ mkdir -p $(@D)
+ sed '1s/.*/*\0*/' $< > $@

0 comments on commit 9d1abd3

Please sign in to comment.
Something went wrong with that request. Please try again.