commit:     10d8b4bd5e8db6c3f919af2162199bc8007c85ca
Author:     Tim Harder <radhermit <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  6 00:21:15 2016 +0000
Commit:     Tim Harder <radhermit <AT> gentoo <DOT> org>
CommitDate: Sun Mar  6 00:21:15 2016 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=10d8b4bd

makefile: glob files instead of explicitly listing each one

This assumes we'll be installing all files within the related vim plugin
dirs, but cruft shouldn't be put in those directories anyway.

 Makefile | 67 ++++++++--------------------------------------------------------
 1 file changed, 8 insertions(+), 59 deletions(-)

diff --git a/Makefile b/Makefile
index c2f49ec..6ffdd86 100644
--- a/Makefile
+++ b/Makefile
@@ -6,65 +6,14 @@ distpkg := $(distapp)-$(distver)
 
 PREFIX = ${HOME}/.vim/
 
-files_vars = \
-       files_doc \
-       files_ftdetect \
-       files_ftplugin \
-       files_indent \
-       files_plugin \
-       files_syntax
-
-files_doc = \
-       doc/gentoo-syntax.txt
-
-files_ftdetect = \
-       ftdetect/gentoo.vim
-
-files_ftplugin = \
-       ftplugin/ebuild.vim \
-       ftplugin/gentoo-changelog.vim \
-       ftplugin/gentoo-conf-d.vim \
-       ftplugin/gentoo-env-d.vim \
-       ftplugin/gentoo-init-d.vim \
-       ftplugin/gentoo-make-conf.vim \
-       ftplugin/gentoo-metadata.vim \
-       ftplugin/gentoo-package-keywords.vim \
-       ftplugin/gentoo-package-license.vim \
-       ftplugin/gentoo-package-mask.vim \
-       ftplugin/gentoo-package-properties.vim \
-       ftplugin/gentoo-package-use.vim \
-       ftplugin/gentoo-use-desc.vim
-
-files_indent = \
-       indent/ebuild.vim \
-       indent/gentoo-metadata.vim
-
-files_plugin = \
-       plugin/gentoo-common.vim \
-       plugin/newebuild.vim \
-       plugin/newmetadata.vim \
-       plugin/newinitd.vim
-
-files_syntax = \
-       syntax/ebuild.vim \
-       syntax/gentoo-changelog.vim \
-       syntax/gentoo-common.vim \
-       syntax/gentoo-conf-d.vim \
-       syntax/gentoo-env-d.vim \
-       syntax/gentoo-init-d.vim \
-       syntax/gentoo-make-conf.vim \
-       syntax/gentoo-metadata.vim \
-       syntax/gentoo-mirrors.vim \
-       syntax/gentoo-package-keywords.vim \
-       syntax/gentoo-package-license.vim \
-       syntax/gentoo-package-mask.vim \
-       syntax/gentoo-package-properties.vim \
-       syntax/gentoo-package-use.vim \
-       syntax/gentoo-use-desc.vim \
-       syntax/glep.vim \
-       syntax/guidexml.vim
-
-files = $(foreach f, $(files_vars), $($(f)) )
+files = $(wildcard \
+       doc/* \
+       ftdetect/* \
+       ftplugin/* \
+       indent/* \
+       plugin/* \
+       syntax/* \
+)
 
 scripts: ${files}
 

Reply via email to