gfx/harfbuzz/git.mk

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

michael@0 1 # git.mk
michael@0 2 #
michael@0 3 # Copyright 2009, Red Hat, Inc.
michael@0 4 # Written by Behdad Esfahbod
michael@0 5 #
michael@0 6 # Copying and distribution of this file, with or without modification,
michael@0 7 # are permitted in any medium without royalty provided the copyright
michael@0 8 # notice and this notice are preserved.
michael@0 9 #
michael@0 10 # The canonical source for this file is pango/git.mk, or whereever the
michael@0 11 # header of pango/git.mk suggests in the future.
michael@0 12 #
michael@0 13 # To use in your project, import this file in your git repo's toplevel,
michael@0 14 # then do "make -f git.mk". This modifies all Makefile.am files in
michael@0 15 # your project to include git.mk.
michael@0 16 #
michael@0 17 # This enables automatic .gitignore generation. If you need to ignore
michael@0 18 # more files, add them to the GITIGNOREFILES variable in your Makefile.am.
michael@0 19 # But think twice before doing that. If a file has to be in .gitignore,
michael@0 20 # chances are very high that it's a generated file and should be in one
michael@0 21 # of MOSTLYCLEANFILES, CLEANFILES, DISTCLEANFILES, or MAINTAINERCLEANFILES.
michael@0 22 #
michael@0 23 # The only case that you need to manually add a file to GITIGNOREFILES is
michael@0 24 # when remove files in one of mostlyclean-local, clean-local, distclean-local,
michael@0 25 # or maintainer-clean-local.
michael@0 26 #
michael@0 27 # Note that for files like editor backup, etc, there are better places to
michael@0 28 # ignore them. See "man gitignore".
michael@0 29 #
michael@0 30 # If "make maintainer-clean" removes the files but they are not recognized
michael@0 31 # by this script (that is, if "git status" shows untracked files still), send
michael@0 32 # me the output of "git status" as well as your Makefile.am and Makefile for
michael@0 33 # the directories involved.
michael@0 34 #
michael@0 35 # For a list of toplevel files that should be in MAINTAINERCLEANFILES, see
michael@0 36 # pango/Makefile.am.
michael@0 37 #
michael@0 38 # Don't EXTRA_DIST this file. It is supposed to only live in git clones,
michael@0 39 # not tarballs. It serves no useful purpose in tarballs and clutters the
michael@0 40 # build dir.
michael@0 41 #
michael@0 42 # This file knows how to handle autoconf, automake, libtool, gtk-doc,
michael@0 43 # gnome-doc-utils, intltool.
michael@0 44 #
michael@0 45 #
michael@0 46 # KNOWN ISSUES:
michael@0 47 #
michael@0 48 # - Recursive configure doesn't work as $(top_srcdir)/git.mk inside the
michael@0 49 # submodule doesn't find us. If you have configure.{in,ac} files in
michael@0 50 # subdirs, add a proxy git.mk file in those dirs that simply does:
michael@0 51 # "include $(top_srcdir)/../git.mk". Add more ..'s to your taste.
michael@0 52 # And add those files to git. See vte/gnome-pty-helper/git.mk for
michael@0 53 # example.
michael@0 54 #
michael@0 55
michael@0 56 git-all: git-mk-install
michael@0 57
michael@0 58 git-mk-install:
michael@0 59 @echo Installing git makefile
michael@0 60 @any_failed=; find $(top_srcdir) -name Makefile.am | while read x; do \
michael@0 61 if grep 'include .*/git.mk' $$x >/dev/null; then \
michael@0 62 echo $$x already includes git.mk; \
michael@0 63 else \
michael@0 64 failed=; \
michael@0 65 echo "Updating $$x"; \
michael@0 66 { cat $$x; \
michael@0 67 echo ''; \
michael@0 68 echo '-include $$(top_srcdir)/git.mk'; \
michael@0 69 } > $$x.tmp || failed=1; \
michael@0 70 if test x$$failed = x; then \
michael@0 71 mv $$x.tmp $$x || failed=1; \
michael@0 72 fi; \
michael@0 73 if test x$$failed = x; then : else \
michael@0 74 echo Failed updating $$x; >&2 \
michael@0 75 any_failed=1; \
michael@0 76 fi; \
michael@0 77 fi; done; test -z "$$any_failed"
michael@0 78
michael@0 79 .PHONY: git-all git-mk-install
michael@0 80
michael@0 81
michael@0 82 ### .gitignore generation
michael@0 83
michael@0 84 $(srcdir)/.gitignore: Makefile.am $(top_srcdir)/git.mk
michael@0 85 $(AM_V_GEN) \
michael@0 86 { \
michael@0 87 if test "x$(DOC_MODULE)" = x -o "x$(DOC_MAIN_SGML_FILE)" = x; then :; else \
michael@0 88 for x in \
michael@0 89 $(DOC_MODULE)-decl-list.txt \
michael@0 90 $(DOC_MODULE)-decl.txt \
michael@0 91 tmpl/$(DOC_MODULE)-unused.sgml \
michael@0 92 "tmpl/*.bak" \
michael@0 93 xml html \
michael@0 94 ; do echo /$$x; done; \
michael@0 95 fi; \
michael@0 96 if test "x$(DOC_MODULE)" = x -o "x$(DOC_LINGUAS)" = x; then :; else \
michael@0 97 for x in \
michael@0 98 $(_DOC_C_DOCS) \
michael@0 99 $(_DOC_LC_DOCS) \
michael@0 100 $(_DOC_OMF_ALL) \
michael@0 101 $(_DOC_DSK_ALL) \
michael@0 102 $(_DOC_HTML_ALL) \
michael@0 103 $(_DOC_POFILES) \
michael@0 104 "*/.xml2po.mo" \
michael@0 105 "*/*.omf.out" \
michael@0 106 ; do echo /$$x; done; \
michael@0 107 fi; \
michael@0 108 if test -f $(srcdir)/po/Makefile.in.in; then \
michael@0 109 for x in \
michael@0 110 po/Makefile.in.in \
michael@0 111 po/Makefile.in \
michael@0 112 po/Makefile \
michael@0 113 po/POTFILES \
michael@0 114 po/stamp-it \
michael@0 115 po/.intltool-merge-cache \
michael@0 116 "po/*.gmo" \
michael@0 117 "po/*.mo" \
michael@0 118 po/$(GETTEXT_PACKAGE).pot \
michael@0 119 intltool-extract.in \
michael@0 120 intltool-merge.in \
michael@0 121 intltool-update.in \
michael@0 122 ; do echo /$$x; done; \
michael@0 123 fi; \
michael@0 124 if test -f $(srcdir)/configure; then \
michael@0 125 for x in \
michael@0 126 autom4te.cache \
michael@0 127 configure \
michael@0 128 config.h \
michael@0 129 stamp-h1 \
michael@0 130 libtool \
michael@0 131 config.lt \
michael@0 132 ; do echo /$$x; done; \
michael@0 133 fi; \
michael@0 134 for x in \
michael@0 135 .gitignore \
michael@0 136 $(GITIGNOREFILES) \
michael@0 137 $(CLEANFILES) \
michael@0 138 $(PROGRAMS) \
michael@0 139 $(check_PROGRAMS) \
michael@0 140 $(EXTRA_PROGRAMS) \
michael@0 141 $(LTLIBRARIES) \
michael@0 142 so_locations \
michael@0 143 .libs _libs \
michael@0 144 $(MOSTLYCLEANFILES) \
michael@0 145 "*.$(OBJEXT)" \
michael@0 146 "*.lo" \
michael@0 147 $(DISTCLEANFILES) \
michael@0 148 $(am__CONFIG_DISTCLEAN_FILES) \
michael@0 149 $(CONFIG_CLEAN_FILES) \
michael@0 150 TAGS ID GTAGS GRTAGS GSYMS GPATH tags \
michael@0 151 "*.tab.c" \
michael@0 152 $(MAINTAINERCLEANFILES) \
michael@0 153 $(BUILT_SOURCES) \
michael@0 154 $(DEPDIR) \
michael@0 155 Makefile \
michael@0 156 Makefile.in \
michael@0 157 "*.orig" \
michael@0 158 "*.rej" \
michael@0 159 "*.bak" \
michael@0 160 "*~" \
michael@0 161 ".*.sw[nop]" \
michael@0 162 ; do echo /$$x; done; \
michael@0 163 } | \
michael@0 164 sed "s@^/`echo "$(srcdir)" | sed 's/\(.\)/[\1]/g'`/@/@" | \
michael@0 165 sed 's@/[.]/@/@g' | \
michael@0 166 LC_ALL=C sort | uniq > $@.tmp && \
michael@0 167 mv $@.tmp $@;
michael@0 168
michael@0 169 all: $(srcdir)/.gitignore gitignore-recurse-maybe
michael@0 170 gitignore-recurse-maybe:
michael@0 171 @if test "x$(SUBDIRS)" = "x$(DIST_SUBDIRS)"; then :; else \
michael@0 172 $(MAKE) $(AM_MAKEFLAGS) gitignore-recurse; \
michael@0 173 fi;
michael@0 174 gitignore-recurse:
michael@0 175 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
michael@0 176 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) .gitignore gitignore-recurse || echo "Skipping $$subdir"); \
michael@0 177 done
michael@0 178 gitignore: $(srcdir)/.gitignore gitignore-recurse
michael@0 179
michael@0 180 maintainer-clean: gitignore-clean
michael@0 181 gitignore-clean:
michael@0 182 -rm -f $(srcdir)/.gitignore
michael@0 183
michael@0 184 .PHONY: gitignore-clean gitignore gitignore-recurse gitignore-recurse-maybe

mercurial