summaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: 9267a3ce2c2137d9a8203b8952d94787cc3df442 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
## Process this file with automake to produce Makefile.in

ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}

SUBDIRS = po

DISTCLEANFILES = \
	intltool-extract \
	intltool-merge \
	intltool-update

EXTRA_DIST = \
	autogen.sh \
	PACKAGING

MAINTAINERCLEANFILES = 		\
	$(GITIGNORE_MAINTAINERCLEANFILES_TOPLEVEL) \
	$(GITIGNORE_MAINTAINERCLEANFILES_MAKEFILE_IN) \
	$(GITIGNORE_MAINTAINERCLEANFILES_M4_LIBTOOL) \
	INSTALL			\
	configure		\
	build-aux/*		\
	intltool-extract.in	\
	intltool-merge.in	\
	intltool-update.in	\
	ABOUT-NLS		\
	config.rpath		\
	omf.make		\
	xmldocs.make		\
	m4/codeset.m4 		\
	m4/gettext.m4 		\
	m4/glibc21.m4 		\
	m4/glibc2.m4 		\
	m4/iconv.m4 		\
	m4/intdiv0.m4 		\
	m4/intldir.m4 		\
	m4/intl.m4 		\
	m4/intlmacosx.m4 	\
	m4/intltool.m4 		\
	m4/intmax.m4 		\
	m4/inttypes_h.m4 	\
	m4/inttypes-pri.m4 	\
	m4/lcmessage.m4 	\
	m4/lib-ld.m4 		\
	m4/lib-link.m4 		\
	m4/lib-prefix.m4 	\
	m4/lock.m4 		\
	m4/longlong.m4 		\
	m4/nls.m4 		\
	m4/po.m4 		\
	m4/printf-posix.m4 	\
	m4/progtest.m4 		\
	m4/size_max.m4 		\
	m4/stdint_h.m4 		\
	m4/uintmax_t.m4 	\
	m4/visibility.m4 	\
	m4/wchar_t.m4 		\
	m4/wint_t.m4 		\
	m4/xsize.m4 		\
	po/*.sin		\
	po/*.sed		\
	po/*.header		\
	po/missing		\
	po/Rules-quot		\
	po/Makevars.template

dist-hook: generate-changelog

generate-changelog:
	if test -d $(top_srcdir)/.git; then \
	  sep=`nawk 'BEGIN{$$79=OFS="-";print}'`; \
	  git --git-dir=$(top_srcdir)/.git log --date=short --stat --decorate \
	  | sed -e "s/^\(commit [abcdef0-9]\{40\}\) (.*refs\/tags\/\(v\([0-9.]\+\)\).*)/$$sep\nVersion \3\n$$sep\n\n\1/g" -e 's/^\(commit [abcdef0-9]\{40\}\).*/\1/g' | ruby -e 'puts STDIN.read.gsub(/commit\s*(.*)\nAuthor:\s*(.*)\nDate:\s*(.*)\n/, "\\3 \\2\ncommit \\1\n")' > $(distdir)/c-l; \
	  mv $(distdir)/c-l $(distdir)/ChangeLog; \
	fi

GRESDEPS = $(srcdir)/$1 $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir $(srcdir)/$(dir $1) $(srcdir)/$1)

GRESGEN = $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target="$@" --sourcedir="$(dir $<)" --generate-source "$<"

noinst_HEADERS    =
GITIGNOREFILES    =
CLEANFILES        =
bin_PROGRAMS      =
noinst_PROGRAMS   =
noinst_LTLIBRARIES =
SCALABLE_ICONS    =
gsettings_SCHEMAS =
TESTS             =

GITG_PLUGIN_VAPISOURCES =			\
	libgitg-ext/libgitg-ext-1.0.vapi	\
	libgitg/libgitg-1.0.vapi

include contrib/xml/Makefile.am
include contrib/ide/Makefile.am
include libgitg/Makefile.am
include libgitg-ext/Makefile.am
include plugins/Makefile.am
include gitg/Makefile.am
include data/Makefile.am
include tests/Makefile.am
include win32/Makefile.am
include vapi/Makefile.am

include icons.mk

@INTLTOOL_DESKTOP_RULE@
@INTLTOOL_XML_NOMERGE_RULE@
@GSETTINGS_RULES@

GITIGNOREFILES += $(gsettings_SCHEMAS)

%.typelib: %.gir
	$(INTROSPECTION_COMPILER) $(INTROSPECTION_COMPILER_ARGS) --includedir=$(top_srcdir) -o $@ $<

.PHONY: generate-changelog

-include $(top_srcdir)/git.mk

# vi:ts=8:noet