Commit 65215cda authored by Johannes Schmid's avatar Johannes Schmid

Added suitable gitignore file and generation rules

make will automatically generate a .gitignore now but in addition there is a gitignore file in the
repository that should catch even more files.
parent e2785dbd
/*.bak
/*.lo
/*.o
/*.orig
/*.rej
/*.tab.c
/*~
/.*.swp
/.deps
/.libs
/GPATH
/GRTAGS
/GSYMS
/GTAGS
/ID
/Makefile
/Makefile.in
/TAGS
/_libs
/anjuta.desktop
/anjuta.desktop.in
/autom4te.cache
/config.cache
/config.h
/config.log
/config.lt
/config.status
/config.status.lineno
/configure
/configure.lineno
/intltool-extract
/intltool-extract.in
/intltool-merge
/intltool-merge.in
/intltool-update
/intltool-update.in
/libtool
/po/*.mo
/po/*.pot
/po/.intltool-merge-cache
/po/Makefile
/po/Makefile.in
/po/Makefile.in.in
/po/POTFILES
/po/ar.gmo
/po/az.gmo
/po/be.gmo
/po/be@latin.gmo
/po/bg.gmo
/po/ca.gmo
/po/cs.gmo
/po/da.gmo
/po/de.gmo
/po/dz.gmo
/po/el.gmo
/po/en_CA.gmo
/po/en_GB.gmo
/po/es.gmo
/po/eu.gmo
/po/fi.gmo
/po/fr.gmo
/po/ga.gmo
/po/gl.gmo
/po/gu.gmo
/po/he.gmo
/po/hi.gmo
/po/hr.gmo
/po/hu.gmo
/po/id.gmo
/po/it.gmo
/po/ja.gmo
/po/kn.gmo
/po/ko.gmo
/po/lt.gmo
/po/lv.gmo
/po/mk.gmo
/po/ml.gmo
/po/mr.gmo
/po/ms.gmo
/po/nb.gmo
/po/ne.gmo
/po/nl.gmo
/po/oc.gmo
/po/or.gmo
/po/pa.gmo
/po/pl.gmo
/po/pt.gmo
/po/pt_BR.gmo
/po/ru.gmo
/po/rw.gmo
/po/si.gmo
/po/sk.gmo
/po/sl.gmo
/po/sq.gmo
/po/sr.gmo
/po/sr@latin.gmo
/po/stamp-it
/po/sv.gmo
/po/te.gmo
/po/th.gmo
/po/tr.gmo
/po/uk.gmo
/po/vi.gmo
/po/zh_CN.gmo
/po/zh_HK.gmo
/po/zh_TW.gmo
/so_locations
/stamp-h1
/tags
/libanjuta/interfaces/*.c
/libanjuta/interfaces/*.h
/plugins/*/*.plugin
*marshallers*
.anjuta/
.anjuta_sym_db.db
INSTALL
aclocal.m4
config.guess
config.h.in
config.sub
depcomp
gnome-doc-utils.make
gtk-doc.make
install-sh
libanjuta/interfaces/Makefile.am
ltmain.sh
manuals/reference/libanjuta/tmpl/
missing
mkinstalldirs
omf.make
plugins/*/*.schemas
xmldocs.make
......@@ -56,3 +56,5 @@ DISTCLEANFILES = \
intltool-merge \
intltool-update \
$(gnomemenu_DATA)
-include $(top_srcdir)/git.mk
......@@ -12,3 +12,5 @@ anjuta_data_DATA = welcome.txt
anjuta_profile_DATA = default.profile
EXTRA_DIST = $(anjuta_data_DATA) $(anjuta_profile_DATA)
-include $(top_srcdir)/git.mk
......@@ -14,3 +14,5 @@ man_MANS = \
anjuta_launcher.1
EXTRA_DIST = $(anjuta_doc_DATA) $(man_MANS)
-include $(top_srcdir)/git.mk
# git.mk
#
# Copyright 2009, Red Hat, Inc.
# Written by Behdad Esfahbod
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved.
#
# The canonical source for this file is pango/git.mk, or whereever the
# header of pango/git.mk suggests in the future.
#
# To use in your project, import this file in your git repo's toplevel,
# then do "make -f git.mk". This modifies all Makefile.am files in
# your project to include git.mk.
#
# This enables automatic .gitignore generation. If you need to ignore
# more files, add them to the GITIGNOREFILES variable in your Makefile.am.
# But think twice before doing that. If a file has to be in .gitignore,
# chances are very high that it's a generated file and should be in one
# of MOSTLYCLEANFILES, CLEANFILES, DISTCLEANFILES, or MAINTAINERCLEANFILES.
#
# The only case that you need to manually add a file to GITIGNOREFILES is
# when remove files in one of mostlyclean-local, clean-local, distclean-local,
# or maintainer-clean-local.
#
# Note that for files like editor backup, etc, there are better places to
# ignore them. See "man gitignore".
#
# If "make maintainer-clean" removes the files but they are not recognized
# by this script (that is, if "git stat" shows untracked files still), send
# me the output of "git stat" as well as your Makefile.am and Makefile for
# the directories involved.
#
# For a list of toplevel files that should be in MAINTAINERCLEANFILES, see
# pango/Makefile.am.
#
# Don't EXTRA_DIST this file. It is supposed to only live in git clones,
# not tarballs. It serves no useful purpose in tarballs and clutters the
# build dir.
#
# This file knows how to handle autoconf, automake, libtool, gtk-doc,
# gnome-doc-utils, intltool.
#
#
# KNOWN ISSUES:
#
# - Recursive configure doesn't work as $(top_srcdir)/git.mk inside the
# submodule doesn't find us. If you have configure.{in,ac} files in
# subdirs, add a proxy git.mk file in those dirs that simply does:
# "include $(top_srcdir)/../git.mk". Add more ..'s to your taste.
# And add those files to git. See vte/gnome-pty-helper/git.mk for
# example.
#
git-all: git-mk-install
git-mk-install:
@echo Installing git makefile
@any_failed=; find $(top_srcdir) -name Makefile.am | while read x; do \
if grep 'include .*/git.mk' $$x >/dev/null; then \
echo $$x already includes git.mk; \
else \
failed=; \
echo "Updating $$x"; \
{ cat $$x; \
echo ''; \
echo '-include $$(top_srcdir)/git.mk'; \
} > $$x.tmp || failed=1; \
if test x$$failed = x; then \
mv $$x.tmp $$x || failed=1; \
fi; \
if test x$$failed = x; then : else \
echo Failed updating $$x; >&2 \
any_failed=1; \
fi; \
fi; done; test -z "$$any_failed"
.PHONY: git-all git-mk-install
### .gitignore generation
$(srcdir)/.gitignore: Makefile.am $(top_srcdir)/git.mk
@echo Generating $@; \
GTKDOCGITIGNOREFILES=; \
test "x$(DOC_MODULE)" = x -o "x$(DOC_MAIN_SGML_FILE)" = x || \
GTKDOCGITIGNOREFILES=" \
$(DOC_MODULE)-decl-list.txt \
$(DOC_MODULE)-decl.txt \
tmpl/$(DOC_MODULE)-unused.sgml \
tmpl/*.bak \
xml html \
"; \
GNOMEDOCUTILSGITIGNOREFILES=; \
test "x$(DOC_MODULE)" = x -o "x$(DOC_LINGUAS)" = x || \
GNOMEDOCUTILSGITIGNOREFILES=" \
$(_DOC_C_DOCS) \
$(_DOC_LC_DOCS) \
$(_DOC_OMF_ALL) \
$(_DOC_DSK_ALL) \
$(_DOC_HTML_ALL) \
$(_DOC_POFILES) \
*/.xml2po.mo \
*/*.omf.out \
"; \
INTLTOOLGITIGNOREFILES=; test -f $(srcdir)/po/Makefile.in.in && \
INTLTOOLGITIGNOREFILES=" \
po/Makefile.in.in \
po/Makefile.in \
po/Makefile \
po/*.gmo \
po/*.mo \
po/POTFILES \
po/stamp-it \
po/.intltool-merge-cache \
intltool-extract.in \
intltool-merge.in \
intltool-update.in \
"; \
AUTOCONFGITIGNOREFILES=; test -f $(srcdir)/configure && \
AUTOCONFGITIGNOREFILES=" \
autom4te.cache \
configure \
config.h \
stamp-h1 \
libtool \
config.lt \
"; \
for x in \
.gitignore \
$$GTKDOCGITIGNOREFILES \
$$GNOMEDOCUTILSGITIGNOREFILES \
$$INTLTOOLGITIGNOREFILES \
$$AUTOCONFGITIGNOREFILES \
$(GITIGNOREFILES) \
$(CLEANFILES) \
$(PROGRAMS) \
$(EXTRA_PROGRAMS) \
$(LTLIBRARIES) \
so_locations \
.libs _libs \
$(MOSTLYCLEANFILES) \
"*.$(OBJEXT)" \
"*.lo" \
$(DISTCLEANFILES) \
$(am__CONFIG_DISTCLEAN_FILES) \
$(CONFIG_CLEAN_FILES) \
TAGS ID GTAGS GRTAGS GSYMS GPATH tags \
"*.tab.c" \
$(MAINTAINERCLEANFILES) \
$(BUILT_SOURCES) \
$(DEPDIR) \
Makefile \
Makefile.in \
"*.orig" \
"*.rej" \
"*.bak" \
"*~" \
".*.swp" \
; do echo /$$x; done | \
sed "s@^/`echo "$(srcdir)" | sed 's/\(.\)/[\1]/g'`/@/@" | \
sed 's@/[.]/@/@g' | \
LANG=C sort | uniq > $@.tmp && \
mv $@.tmp $@;
all: $(srcdir)/.gitignore gitignore-recurse
gitignore-recurse:
@if test "x$(SUBDIRS)" = "x$(DIST_SUBDIRS)"; then :; else \
list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) .gitignore); \
done; \
fi;
maintainer-clean-local: gitignore-clean
gitignore-clean:
rm -f $(srcdir)/.gitignore
.PHONY: gitignore-clean gitignore-recurse
......@@ -3,3 +3,5 @@ AM_CPPFLAGS = $(GLIB_CFLAGS) -I. -I.. -g -O $(DEPRECATED_FLAGS)
bin_PROGRAMS = anjuta_launcher
anjuta_launcher_LDADD = $(GLIB_LIBS)
-include $(top_srcdir)/git.mk
......@@ -196,3 +196,5 @@ DISTCLEANFILES = \
anjuta-enum-types.h \
anjuta-enum-types.c \
stamp-anjuta-enum-types.h
-include $(top_srcdir)/git.mk
......@@ -3,3 +3,5 @@
##########################################
SUBDIRS = reference anjuta-manual anjuta-faqs anjuta-build-tutorial
-include $(top_srcdir)/git.mk
......@@ -15,3 +15,5 @@ DOC_FIGURES = figures/autotools-process.png \
figures/configure-dialog.png \
figures/new-project-basic.png \
figures/new-project-summary.png
-include $(top_srcdir)/git.mk
......@@ -4,3 +4,5 @@ DOC_MODULE = anjuta-faqs
DOC_ENTITIES = legal.xml
DOC_AM_CPPFLAGS =
DOC_FIGURES =
-include $(top_srcdir)/git.mk
......@@ -50,3 +50,5 @@ DOC_FIGURES = figures/add_edit_macro.png \
figures/symbol_browser.png\
figures/tool-editor.png
DOC_LINGUAS = de el es eu oc sv
-include $(top_srcdir)/git.mk
......@@ -3,3 +3,5 @@
SUBDIRS = libanjuta
-include $(top_srcdir)/git.mk
......@@ -85,3 +85,5 @@ include $(top_srcdir)/gtk-doc.make
# Other files to distribute
# e.g. EXTRA_DIST += version.xml.in
EXTRA_DIST += version.xml.in
-include $(top_srcdir)/git.mk
......@@ -27,3 +27,5 @@ uninstall-local:
update-mime-database $(DESTDIR)$(datadir)/mime; \
fi \
fi
-include $(top_srcdir)/git.mk
......@@ -26,3 +26,5 @@ uninstall-local:
done
-rmdir $(omf_dest_dir)
-scrollkeeper-update -p $(scrollkeeper_localstate_dir)
-include $(top_srcdir)/git.mk
......@@ -42,3 +42,5 @@ EXTRA_DIST = $(anjuta_pixmaps_DATA) \
$(icon_DATA) \
$(svgicon_DATA)
-include $(top_srcdir)/git.mk
......@@ -32,3 +32,5 @@ SUBDIRS = . \
gbf-am \
gbf-mkfile \
starter
-include $(top_srcdir)/git.mk
......@@ -69,3 +69,5 @@ EXTRA_DIST = \
$(build_pixmaps_DATA) \
$(build_glade_DATA) \
$(build_data_DATA)
-include $(top_srcdir)/git.mk
......@@ -59,3 +59,5 @@ EXTRA_DIST = \
$(clsgen_pixmaps_DATA) \
$(clsgen_glade_DATA) \
$(clsgen_plugin_DATA)
-include $(top_srcdir)/git.mk
......@@ -8,3 +8,5 @@ clsgen_appdata_DATA = \
EXTRA_DIST = \
$(clsgen_appdata_DATA)
-include $(top_srcdir)/git.mk
......@@ -52,3 +52,5 @@ EXTRA_DIST = \
$(cvs_plugin_plugin_DATA) \
$(cvs_plugin_ui_DATA) \
$(cvs_plugin_glade_DATA)
-include $(top_srcdir)/git.mk
......@@ -99,3 +99,5 @@ EXTRA_DIST = \
SUBDIRS = \
images
-include $(top_srcdir)/git.mk
......@@ -28,3 +28,5 @@ images_DATA = \
anjuta-watch.svg
EXTRA_DIST = $(images_DATA)
-include $(top_srcdir)/git.mk
......@@ -53,3 +53,5 @@ EXTRA_DIST = \
$(devhelp_plugin_DATA) \
$(devhelp_ui_DATA) \
$(devhelp_pixmaps_DATA)
-include $(top_srcdir)/git.mk
......@@ -58,3 +58,5 @@ EXTRA_DIST = \
$(document_manager_plugin_DATA) \
$(document_manager_ui_DATA) \
$(document_manager_glade_DATA)
-include $(top_srcdir)/git.mk
......@@ -42,3 +42,5 @@ document_manager_pixmaps_DATA = \
EXTRA_DIST = $(document_manager_pixmaps_DATA)
-include $(top_srcdir)/git.mk
......@@ -51,3 +51,5 @@ EXTRA_DIST = \
$(loader_plugin_DATA) \
$(loader_ui_DATA) \
$(loader_pixmaps_DATA)
-include $(top_srcdir)/git.mk
......@@ -56,3 +56,5 @@ EXTRA_DIST = \
$(file_manager_ui_DATA) \
$(file_manager_glade_DATA) \
$(file_manager_pixmaps_DATA)
-include $(top_srcdir)/git.mk
......@@ -81,3 +81,5 @@ EXTRA_DIST = \
$(file_manager_glade_DATA) \
file-view-marshal.list
-include $(top_srcdir)/git.mk
......@@ -40,3 +40,5 @@ EXTRA_DIST = \
$(wizard_pixmaps_DATA) \
$(wizard_plugin_DATA) \
$(wizard_glade_DATA)
-include $(top_srcdir)/git.mk
......@@ -3,3 +3,5 @@ perlmodules_DATA = AmFiles.pm General.pm
EXTRA_DIST = $(perlmodules_DATA)
-include $(top_srcdir)/git.mk
......@@ -71,3 +71,5 @@ DISTCLEANFILES = \
$(plugin_DATA)
SUBDIRS = GBF
-include $(top_srcdir)/git.mk
......@@ -3,3 +3,5 @@ perlmodules_DATA = Make.pm General.pm
EXTRA_DIST = $(perlmodules_DATA)
-include $(top_srcdir)/git.mk
......@@ -58,3 +58,5 @@ DISTCLEANFILES = \
SUBDIRS = GBF
-include $(top_srcdir)/git.mk
......@@ -60,3 +60,5 @@ EXTRA_DIST = \
SUBDIRS = \
images
-include $(top_srcdir)/git.mk
......@@ -7,3 +7,5 @@ images_DATA = \
stack.png
EXTRA_DIST = $(images_DATA)
-include $(top_srcdir)/git.mk
......@@ -200,3 +200,5 @@ EXTRA_DIST = \
$(git_ui_DATA) \
$(git_glade_DATA) \
$(git_pixmaps_DATA)
-include $(top_srcdir)/git.mk
......@@ -76,3 +76,5 @@ EXTRA_DIST = \
$(glade_pixmaps_DATA) \
$(glade_glade_DATA)
-include $(top_srcdir)/git.mk
......@@ -70,3 +70,5 @@ EXTRA_DIST = \
$(gtodo_plugin_DATA) \
$(gtodo_ui_DATA) \
$(gtodo_data_DATA)
-include $(top_srcdir)/git.mk
......@@ -48,3 +48,5 @@ EXTRA_DIST = \
$(language_manager_pixmaps_DATA) \
languages.xml
-include $(top_srcdir)/git.mk
......@@ -71,3 +71,5 @@ EXTRA_DIST = \
$(cpp_java_ui_DATA) \
$(cpp_java_pixmaps_DATA) \
$(cpp_java_glade_DATA)
-include $(top_srcdir)/git.mk
......@@ -54,3 +54,5 @@ EXTRA_DIST = \
$(macro_ui_DATA) \
$(macro_glade_DATA) \
$(macro_macros_DATA)
-include $(top_srcdir)/git.mk
......@@ -52,3 +52,5 @@ EXTRA_DIST = \
$(message_view_plugin_DATA) \
$(message_view_ui_DATA) \
$(message_view_glade_DATA)
-include $(top_srcdir)/git.mk
......@@ -52,3 +52,5 @@ EXTRA_DIST = \
$(patch_ui_DATA) \
$(patch_pixmaps_DATA) \
$(patch_glade_DATA)
-include $(top_srcdir)/git.mk
......@@ -43,3 +43,5 @@ EXTRA_DIST = \
$(wizard_pixmaps_DATA) \
$(project_import_DATA) \
$(wizard_plugin_DATA)
-include $(top_srcdir)/git.mk
......@@ -64,3 +64,5 @@ EXTRA_DIST = \
DISTCLEANFILES = \
$(project_plugin_DATA) \
$(project_in_files)
-include $(top_srcdir)/git.mk
......@@ -78,3 +78,5 @@ EXTRA_DIST = \
## uninstall-local:
## @rm -fv $(*:%=$(templates_dir)/%)
## -if test -d $(templates_dir); then rmdir $(templates_dir); fi
-include $(top_srcdir)/git.mk
......@@ -43,3 +43,5 @@ translatable-strings.h: $(wizard_files_DATA)
perl $(srcdir)/extract-translatable-strings.pl $(wizard_files_DATA) > translatable-strings.h
EXTRA_DIST = $(wizard_files_DATA) $(BUILT_SOURCES)
-include $(top_srcdir)/git.mk
......@@ -7,3 +7,5 @@ wizard_files_DATA = \
EXTRA_DIST = $(wizard_files_DATA)
-include $(top_srcdir)/git.mk
wizard_filesdir = $(anjuta_data_dir)/project/anjuta-plugin-vala/po
wizard_files_DATA = POTFILES.in
EXTRA_DIST = $(wizard_files_DATA)
-include $(top_srcdir)/git.mk
......@@ -5,3 +5,5 @@ wizard_files_DATA = \
config.vapi
EXTRA_DIST = $(wizard_files_DATA)
-include $(top_srcdir)/git.mk
......@@ -7,3 +7,5 @@ wizard_files_DATA = \
EXTRA_DIST = $(wizard_files_DATA)
-include $(top_srcdir)/git.mk
wizard_filesdir = $(anjuta_data_dir)/project/anjuta-plugin/po
wizard_files_DATA = POTFILES.in
EXTRA_DIST = $(wizard_files_DATA)
-include $(top_srcdir)/git.mk
......@@ -8,3 +8,5 @@ wizard_files_DATA = \
plugin.ui
EXTRA_DIST = $(wizard_files_DATA)
-include $(top_srcdir)/git.mk
......@@ -6,3 +6,5 @@ wizard_files_DATA = \
configure.ac.tpl
EXTRA_DIST = $(wizard_files_DATA)
-include $(top_srcdir)/git.mk
wizard_filesdir = $(anjuta_data_dir)/project/cpp/po
wizard_files_DATA = POTFILES.in
EXTRA_DIST = $(wizard_files_DATA)
-include $(top_srcdir)/git.mk
......@@ -2,3 +2,5 @@ wizard_filesdir = $(anjuta_data_dir)/project/cpp/src
wizard_files_DATA = main.cc Makefile.am.tpl \
cvsignore
EXTRA_DIST = $(wizard_files_DATA)
-include $(top_srcdir)/git.mk
......@@ -6,3 +6,5 @@ wizard_files_DATA = \
configure.ac.tpl
EXTRA_DIST = $(wizard_files_DATA)
-include $(top_srcdir)/git.mk
......@@ -2,3 +2,5 @@
wizard_filesdir = $(anjuta_data_dir)/project/gcj/src
wizard_files_DATA = Makefile.am.tpl
EXTRA_DIST = $(wizard_files_DATA)
-include $(top_srcdir)/git.mk
......@@ -9,3 +9,5 @@ wizard_files_DATA = \
HACKING
EXTRA_DIST = $(wizard_files_DATA)
-include $(top_srcdir)/git.mk
wizard_filesdir = $(anjuta_data_dir)/project/gnome/po
wizard_files_DATA = POTFILES.in
EXTRA_DIST = $(wizard_files_DATA)
-include $(top_srcdir)/git.mk
......@@ -5,3 +5,5 @@ wizard_files_DATA = main.c \
GNOME_Applet.server.in.in
EXTRA_DIST = $(wizard_files_DATA)
-include $(top_srcdir)/git.mk
wizard_filesdir = $(anjuta_data_dir)/project/gtk/po
wizard_files_DATA = POTFILES.in
EXTRA_DIST = $(wizard_files_DATA)
-include $(top_srcdir)/git.mk
wizard_filesdir = $(anjuta_data_dir)/project/gtk/src
wizard_files_DATA = main.c callbacks.c callbacks.h Makefile.am.tpl project.glade
EXTRA_DIST = $(wizard_files_DATA)
-include $(top_srcdir)/git.mk
......@@ -6,3 +6,5 @@ wizard_files_DATA =
EXTRA_DIST = $(wizard_files_DATA)
-include $(top_srcdir)/git.mk