gfx/harfbuzz/git.mk

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/harfbuzz/git.mk	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,184 @@
     1.4 +# git.mk
     1.5 +#
     1.6 +# Copyright 2009, Red Hat, Inc.
     1.7 +# Written by Behdad Esfahbod
     1.8 +#
     1.9 +# Copying and distribution of this file, with or without modification,
    1.10 +# are permitted in any medium without royalty provided the copyright
    1.11 +# notice and this notice are preserved.
    1.12 +#
    1.13 +# The canonical source for this file is pango/git.mk, or whereever the
    1.14 +# header of pango/git.mk suggests in the future.
    1.15 +#
    1.16 +# To use in your project, import this file in your git repo's toplevel,
    1.17 +# then do "make -f git.mk".  This modifies all Makefile.am files in
    1.18 +# your project to include git.mk.
    1.19 +#
    1.20 +# This enables automatic .gitignore generation.  If you need to ignore
    1.21 +# more files, add them to the GITIGNOREFILES variable in your Makefile.am.
    1.22 +# But think twice before doing that.  If a file has to be in .gitignore,
    1.23 +# chances are very high that it's a generated file and should be in one
    1.24 +# of MOSTLYCLEANFILES, CLEANFILES, DISTCLEANFILES, or MAINTAINERCLEANFILES.
    1.25 +#
    1.26 +# The only case that you need to manually add a file to GITIGNOREFILES is
    1.27 +# when remove files in one of mostlyclean-local, clean-local, distclean-local,
    1.28 +# or maintainer-clean-local.
    1.29 +#
    1.30 +# Note that for files like editor backup, etc, there are better places to
    1.31 +# ignore them.  See "man gitignore".
    1.32 +#
    1.33 +# If "make maintainer-clean" removes the files but they are not recognized
    1.34 +# by this script (that is, if "git status" shows untracked files still), send
    1.35 +# me the output of "git status" as well as your Makefile.am and Makefile for
    1.36 +# the directories involved.
    1.37 +#
    1.38 +# For a list of toplevel files that should be in MAINTAINERCLEANFILES, see
    1.39 +# pango/Makefile.am.
    1.40 +#
    1.41 +# Don't EXTRA_DIST this file.  It is supposed to only live in git clones,
    1.42 +# not tarballs.  It serves no useful purpose in tarballs and clutters the
    1.43 +# build dir.
    1.44 +#
    1.45 +# This file knows how to handle autoconf, automake, libtool, gtk-doc,
    1.46 +# gnome-doc-utils, intltool.
    1.47 +#
    1.48 +#
    1.49 +# KNOWN ISSUES:
    1.50 +#
    1.51 +# - Recursive configure doesn't work as $(top_srcdir)/git.mk inside the
    1.52 +#   submodule doesn't find us.  If you have configure.{in,ac} files in
    1.53 +#   subdirs, add a proxy git.mk file in those dirs that simply does:
    1.54 +#   "include $(top_srcdir)/../git.mk".  Add more ..'s to your taste.
    1.55 +#   And add those files to git.  See vte/gnome-pty-helper/git.mk for
    1.56 +#   example.
    1.57 +#
    1.58 +
    1.59 +git-all: git-mk-install
    1.60 +
    1.61 +git-mk-install:
    1.62 +	@echo Installing git makefile
    1.63 +	@any_failed=; find $(top_srcdir) -name Makefile.am | while read x; do \
    1.64 +		if grep 'include .*/git.mk' $$x >/dev/null; then \
    1.65 +			echo $$x already includes git.mk; \
    1.66 +		else \
    1.67 +			failed=; \
    1.68 +			echo "Updating $$x"; \
    1.69 +			{ cat $$x; \
    1.70 +			  echo ''; \
    1.71 +			  echo '-include $$(top_srcdir)/git.mk'; \
    1.72 +			} > $$x.tmp || failed=1; \
    1.73 +			if test x$$failed = x; then \
    1.74 +				mv $$x.tmp $$x || failed=1; \
    1.75 +			fi; \
    1.76 +			if test x$$failed = x; then : else \
    1.77 +				echo Failed updating $$x; >&2 \
    1.78 +				any_failed=1; \
    1.79 +			fi; \
    1.80 +	fi; done; test -z "$$any_failed"
    1.81 +
    1.82 +.PHONY: git-all git-mk-install
    1.83 +
    1.84 +
    1.85 +### .gitignore generation
    1.86 +
    1.87 +$(srcdir)/.gitignore: Makefile.am $(top_srcdir)/git.mk
    1.88 +	$(AM_V_GEN) \
    1.89 +	{ \
    1.90 +		if test "x$(DOC_MODULE)" = x -o "x$(DOC_MAIN_SGML_FILE)" = x; then :; else \
    1.91 +			for x in \
    1.92 +				$(DOC_MODULE)-decl-list.txt \
    1.93 +				$(DOC_MODULE)-decl.txt \
    1.94 +				tmpl/$(DOC_MODULE)-unused.sgml \
    1.95 +				"tmpl/*.bak" \
    1.96 +				xml html \
    1.97 +			; do echo /$$x; done; \
    1.98 +		fi; \
    1.99 +		if test "x$(DOC_MODULE)" = x -o "x$(DOC_LINGUAS)" = x; then :; else \
   1.100 +			for x in \
   1.101 +				$(_DOC_C_DOCS) \
   1.102 +				$(_DOC_LC_DOCS) \
   1.103 +				$(_DOC_OMF_ALL) \
   1.104 +				$(_DOC_DSK_ALL) \
   1.105 +				$(_DOC_HTML_ALL) \
   1.106 +				$(_DOC_POFILES) \
   1.107 +				"*/.xml2po.mo" \
   1.108 +				"*/*.omf.out" \
   1.109 +			; do echo /$$x; done; \
   1.110 +		fi; \
   1.111 +		if test -f $(srcdir)/po/Makefile.in.in; then \
   1.112 +			for x in \
   1.113 +				po/Makefile.in.in \
   1.114 +				po/Makefile.in \
   1.115 +				po/Makefile \
   1.116 +				po/POTFILES \
   1.117 +				po/stamp-it \
   1.118 +				po/.intltool-merge-cache \
   1.119 +				"po/*.gmo" \
   1.120 +				"po/*.mo" \
   1.121 +				po/$(GETTEXT_PACKAGE).pot \
   1.122 +				intltool-extract.in \
   1.123 +				intltool-merge.in \
   1.124 +				intltool-update.in \
   1.125 +			; do echo /$$x; done; \
   1.126 +		fi; \
   1.127 +		if test -f $(srcdir)/configure; then \
   1.128 +			for x in \
   1.129 +				autom4te.cache \
   1.130 +				configure \
   1.131 +				config.h \
   1.132 +				stamp-h1 \
   1.133 +				libtool \
   1.134 +				config.lt \
   1.135 +			; do echo /$$x; done; \
   1.136 +		fi; \
   1.137 +		for x in \
   1.138 +			.gitignore \
   1.139 +			$(GITIGNOREFILES) \
   1.140 +			$(CLEANFILES) \
   1.141 +			$(PROGRAMS) \
   1.142 +			$(check_PROGRAMS) \
   1.143 +			$(EXTRA_PROGRAMS) \
   1.144 +			$(LTLIBRARIES) \
   1.145 +			so_locations \
   1.146 +			.libs _libs \
   1.147 +			$(MOSTLYCLEANFILES) \
   1.148 +			"*.$(OBJEXT)" \
   1.149 +			"*.lo" \
   1.150 +			$(DISTCLEANFILES) \
   1.151 +			$(am__CONFIG_DISTCLEAN_FILES) \
   1.152 +			$(CONFIG_CLEAN_FILES) \
   1.153 +			TAGS ID GTAGS GRTAGS GSYMS GPATH tags \
   1.154 +			"*.tab.c" \
   1.155 +			$(MAINTAINERCLEANFILES) \
   1.156 +			$(BUILT_SOURCES) \
   1.157 +			$(DEPDIR) \
   1.158 +			Makefile \
   1.159 +			Makefile.in \
   1.160 +			"*.orig" \
   1.161 +			"*.rej" \
   1.162 +			"*.bak" \
   1.163 +			"*~" \
   1.164 +			".*.sw[nop]" \
   1.165 +		; do echo /$$x; done; \
   1.166 +	} | \
   1.167 +	sed "s@^/`echo "$(srcdir)" | sed 's/\(.\)/[\1]/g'`/@/@" | \
   1.168 +	sed 's@/[.]/@/@g' | \
   1.169 +	LC_ALL=C sort | uniq > $@.tmp && \
   1.170 +	mv $@.tmp $@;
   1.171 +
   1.172 +all: $(srcdir)/.gitignore gitignore-recurse-maybe
   1.173 +gitignore-recurse-maybe:
   1.174 +	@if test "x$(SUBDIRS)" = "x$(DIST_SUBDIRS)"; then :; else \
   1.175 +		$(MAKE) $(AM_MAKEFLAGS) gitignore-recurse; \
   1.176 +	fi;
   1.177 +gitignore-recurse:
   1.178 +	@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
   1.179 +	  test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) .gitignore gitignore-recurse || echo "Skipping $$subdir"); \
   1.180 +	done
   1.181 +gitignore: $(srcdir)/.gitignore gitignore-recurse
   1.182 +
   1.183 +maintainer-clean: gitignore-clean
   1.184 +gitignore-clean:
   1.185 +	-rm -f $(srcdir)/.gitignore
   1.186 +
   1.187 +.PHONY: gitignore-clean gitignore gitignore-recurse gitignore-recurse-maybe

mercurial