From ccb285aa4d0f9b71e2e9111709ae16744835bff2 Mon Sep 17 00:00:00 2001 From: Ryan Phillips Date: Tue, 7 Jun 2005 16:33:57 +0000 Subject: initial import svn path=/trunk/; revision=1 --- Makefile | 104 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f88c7e9 --- /dev/null +++ b/Makefile @@ -0,0 +1,104 @@ +# Makefile for gentoo-syntax + +distapp = gentoo-syntax +distver := $(shell date --iso | sed -e 's~-~~g') +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 \ + ftplugin/ebuild.vim \ + ftdetect/eclectic.vim + +files_ftplugin = \ + ftplugin/gentoo-changelog.vim \ + ftplugin/gentoo-metadata.vim \ + ftplugin/eclectic.vim + +files_indent = \ + indent/ebuild.vim \ + indent/gentoo-metadata.vim \ + indent/eclectic.vim + +files_plugin = \ + plugin/bugsummary.vim \ + plugin/gentoo-common.vim \ + plugin/newebuild.vim \ + plugin/newmetadata.vim \ + plugin/newinitd.vim \ + plugin/neweclectic.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-mask.vim \ + syntax/gentoo-package-use.vim \ + syntax/gentoo-use-desc.vim \ + syntax/glep.vim \ + syntax/guidexml.vim \ + syntax/eclectic.vim + +files = $(foreach f, $(files_vars), $($(f)) ) + +scripts: ${files} + +install: install-dirs install-files + +install-dirs: $(foreach a, $(sort $(dir $(files))), \ + install-dir-$(a)) + +install-files: $(foreach a, $(sort $(files)), \ + install-file-$(subst /,_,$(a) )) + +install-dir-%: + mkdir -p "$(PREFIX)/$*" + +install-file-%: $(subst _,/,$*) + cp "$(subst _,/,$*)" "$(PREFIX)/$(subst _,/,$*)" + +uninstall : uninstall-files + +uninstall-files: $(foreach a, $(sort $(files)), \ + uninstall-file-$(subst /,_,$(a) )) + +uninstall-file-%: $(subst _,/,$*) + [ ! -f "$(PREFIX)/$(subst _,/,$*)" ] || rm "$(PREFIX)/$(subst _,/,$*)" + +dist: + mkdir "$(distpkg)" + $(MAKE) PREFIX="$(distpkg)" install + cp README "$(distpkg)/" + tar jcf "$(distpkg).tar.bz2" "$(distpkg)" + rm -fr "$(distpkg)/" + +dist-sign: dist + gpg --armour --detach-sign "$(distpkg).tar.bz2" + mv "$(distpkg).tar.bz2.asc" "$(distpkg).tar.bz2.signature" + +dist-upload: dist dist-sign + echo -ne "user anonymous gentoo-syntax\ncd incoming\nput $(distpkg).tar.bz2\nput $(distpkg).tar.bz2.signature\nbye" | \ + ftp -n ftp.berlios.de + +clean: + find . -name '*~' | xargs rm || true + -- cgit v1.2.3-65-gdbad