File: Makefile.am

package info (click to toggle)
gitg 0.2.4-1.1%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,504 kB
  • sloc: ansic: 25,169; sh: 11,612; makefile: 388; xml: 364
file content (98 lines) | stat: -rw-r--r-- 2,088 bytes parent folder | download
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
lib_LTLIBRARIES = libgitg-1.0.la

INCLUDES =								\
	-I$(top_srcdir)							\
	-I$(srcdir)							\
	$(GITG_CFLAGS)							\
	$(WARN_CFLAGS)							\
	$(DISABLE_DEPRECATED_CFLAGS)					\
	-DDATADIR=\""$(datadir)"\"					\
	-DLIBDIR=\""$(libdir)"\"					\
	-DGITG_LOCALEDIR=\""$(datadir)/locale"\"

libgitg_1_0_la_LDFLAGS = -static

libgitg_1_0_la_LIBADD = $(GITG_LIBS)

BUILT_SOURCES =			\
	gitg-enum-types.h	\
	gitg-enum-types.c

INST_H_FILES =			\
	$(BUILT_H_FILES)	\
	gitg-changed-file.h	\
	gitg-color.h		\
	gitg-commit.h		\
	gitg-config.h		\
	gitg-hash.h		\
	gitg-lane.h		\
	gitg-ref.h		\
	gitg-repository.h	\
	gitg-revision.h		\
	gitg-runner.h		\
	gitg-command.h		\
	gitg-shell.h		\
	gitg-io.h		\
	gitg-line-parser.h

NOINST_H_FILES =			\
	gitg-convert.h			\
	gitg-debug.h			\
	gitg-i18n.h			\
	gitg-lanes.h			\
	gitg-smart-charset-converter.h	\
	gitg-encodings.h

C_FILES =				\
	$(BUILT_SOURCES)		\
	gitg-changed-file.c		\
	gitg-color.c			\
	gitg-commit.c			\
	gitg-config.c			\
	gitg-convert.c			\
	gitg-hash.c			\
	gitg-i18n.c			\
	gitg-lane.c			\
	gitg-lanes.c			\
	gitg-ref.c			\
	gitg-repository.c		\
	gitg-revision.c			\
	gitg-runner.c			\
	gitg-smart-charset-converter.c	\
	gitg-encodings.c		\
	gitg-command.c			\
	gitg-io.c			\
	gitg-shell.c			\
	gitg-line-parser.c

if ENABLE_DEBUG
C_FILES += gitg-debug.c
endif

ENUM_H_FILES =			\
	gitg-changed-file.h

libgitg_1_0_la_SOURCES = 	\
	$(INST_H_FILES)		\
	$(NOINST_H_FILES)	\
	$(C_FILES)

headerdir = $(prefix)/include/libgitg-1.0/libgitg
header_DATA = $(INST_H_FILES)

EXTRA_DIST = 				\
	gitg-enum-types.h.template	\
	gitg-enum-types.c.template

CLEANFILES = $(BUILT_SOURCES)

dist-hook:
	cd $(distdir); rm -f $(BUILT_SOURCES)

gitg-enum-types.h: gitg-enum-types.h.template $(ENUM_H_FILES) $(GLIB_MKENUMS)
	$(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template gitg-enum-types.h.template $(ENUM_H_FILES)) > $@

gitg-enum-types.c: gitg-enum-types.c.template $(ENUM_H_FILES) $(GLIB_MKENUMS)
	$(AM_V_GEN) (cd $(srcdir) && $(GLIB_MKENUMS) --template gitg-enum-types.c.template $(ENUM_H_FILES)) > $@

-include $(top_srcdir)/git.mk