Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 154 lines (127 sloc) 4.096 kB
5a539f2 @Keruspe Fix copyright headers
Keruspe authored
1 # This file is part of GPaste.
2 #
92c43a0 @Keruspe build-sys: modularize automake chain
Keruspe authored
3 # Copyright 2011-2012 Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
5a539f2 @Keruspe Fix copyright headers
Keruspe authored
4 #
5 # GPaste is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # GPaste is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with GPaste. If not, see <http://www.gnu.org/licenses/>.
17
cf08f3b @Keruspe switch to automake 1.11.2
Keruspe authored
18 AM_DISTCHECK_CONFIGURE_FLAGS = \
464145a @Keruspe fix distcheck
Keruspe authored
19 --with-dbusservicesdir=$$dc_install_base/$(dbusservicesdir) \
92c43a0 @Keruspe build-sys: modularize automake chain
Keruspe authored
20 --enable-applet \
21 $(NULL)
b707961 @Keruspe automake: Fix
Keruspe authored
22 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
a6e665e @Keruspe libgpaste: rewrite gpaste-item in C + build it
Keruspe authored
23 AM_MAKEFLAGS = --no-print-directory
be54a3e @Keruspe Huge autotools cleanup
Keruspe authored
24 SUBDIRS = po
b6c53ec @Keruspe Merge Makefile.amS
Keruspe authored
25
92c43a0 @Keruspe build-sys: modularize automake chain
Keruspe authored
26 # Global part
b6c53ec @Keruspe Merge Makefile.amS
Keruspe authored
27
be54a3e @Keruspe Huge autotools cleanup
Keruspe authored
28 applicationsdir = $(datadir)/applications
92c43a0 @Keruspe build-sys: modularize automake chain
Keruspe authored
29 nodist_applications_in_files = $(NULL)
30 nodist_applications_DATA = $(NULL)
71485b4 @Keruspe add gpasted to autostart
Keruspe authored
31
92c43a0 @Keruspe build-sys: modularize automake chain
Keruspe authored
32 autostartdir = $(sysconfdir)/xdg/autostart
33 nodist_autostart_in_files = $(NULL)
70dd948 @Keruspe move gpaste-daemon to gpasted (out of libgpaste)
Keruspe authored
34
a6e665e @Keruspe libgpaste: rewrite gpaste-item in C + build it
Keruspe authored
35 pkgconfigdir = $(libdir)/pkgconfig
92c43a0 @Keruspe build-sys: modularize automake chain
Keruspe authored
36 pkgconfig_DATA = $(NULL)
b6c53ec @Keruspe Merge Makefile.amS
Keruspe authored
37
92c43a0 @Keruspe build-sys: modularize automake chain
Keruspe authored
38 bin_PROGRAMS = $(NULL)
39 pkglibexec_PROGRAMS = $(NULL)
b6c53ec @Keruspe Merge Makefile.amS
Keruspe authored
40
92c43a0 @Keruspe build-sys: modularize automake chain
Keruspe authored
41 lib_LTLIBRARIES = $(NULL)
b6c53ec @Keruspe Merge Makefile.amS
Keruspe authored
42
92c43a0 @Keruspe build-sys: modularize automake chain
Keruspe authored
43 nodist_man_MANS = $(NULL)
b6c53ec @Keruspe Merge Makefile.amS
Keruspe authored
44
be54a3e @Keruspe Huge autotools cleanup
Keruspe authored
45 AM_VALAFLAGS = \
e6bccde @Keruspe little autotools cleanup
Keruspe authored
46 --vapidir=$(srcdir)/vapi \
b61cd75 @Keruspe fix autotools
Keruspe authored
47 --pkg=config \
03e4300 @Keruspe Add --debug to VALAFLAGS for now
Keruspe authored
48 --pkg=posix \
92c43a0 @Keruspe build-sys: modularize automake chain
Keruspe authored
49 $(GIO_VALAFLAGS) \
50 $(NULL)
d0a0535 @Keruspe add applet
Keruspe authored
51
be54a3e @Keruspe Huge autotools cleanup
Keruspe authored
52 AM_CFLAGS = \
e6bccde @Keruspe little autotools cleanup
Keruspe authored
53 -I$(srcdir)/libgpaste \
19907a9 @Keruspe import CFLAGS from systemd and adapt to it
Keruspe authored
54 -DG_PASTE_COMPILATION \
92c43a0 @Keruspe build-sys: modularize automake chain
Keruspe authored
55 -DLOCALEDIR=\"$(localedir)\" \
56 -DPKGLIBEXECDIR=\"$(pkglibexecdir)\" \
be54a3e @Keruspe Huge autotools cleanup
Keruspe authored
57 $(GLIB_CFLAGS) \
32a49cc @Keruspe libgpaste: add gobject-introspection support
Keruspe authored
58 $(GOBJECT_CFLAGS) \
92c43a0 @Keruspe build-sys: modularize automake chain
Keruspe authored
59 $(GIO_CFLAGS) \
60 $(NULL)
d0a0535 @Keruspe add applet
Keruspe authored
61
19907a9 @Keruspe import CFLAGS from systemd and adapt to it
Keruspe authored
62 VALA_CFLAGS = \
c79a730 @Keruspe rework config.h inclusion for vala
Keruspe authored
63 --include config.h \
19907a9 @Keruspe import CFLAGS from systemd and adapt to it
Keruspe authored
64 -Wno-unused-parameter \
49b3f96 @Keruspe use new attributes.m4 facilities
Keruspe authored
65 -Wno-unused-variable \
19907a9 @Keruspe import CFLAGS from systemd and adapt to it
Keruspe authored
66 -Wno-missing-field-initializers \
92c43a0 @Keruspe build-sys: modularize automake chain
Keruspe authored
67 -Wno-unused-but-set-variable \
68 $(NULL)
73ac4ca @Keruspe make applet optional
Keruspe authored
69
be54a3e @Keruspe Huge autotools cleanup
Keruspe authored
70 AM_LIBS = \
71 $(GLIB_LIBS) \
32a49cc @Keruspe libgpaste: add gobject-introspection support
Keruspe authored
72 $(GOBJECT_LIBS) \
92c43a0 @Keruspe build-sys: modularize automake chain
Keruspe authored
73 $(GIO_LIBS) \
74 $(NULL)
b02f9b5 @Keruspe fix distcheck
Keruspe authored
75
be54a3e @Keruspe Huge autotools cleanup
Keruspe authored
76 EXTRA_DIST = \
baf70bb @Keruspe fix distcheck
Keruspe authored
77 autogen.sh \
92c43a0 @Keruspe build-sys: modularize automake chain
Keruspe authored
78 vapi/config.vapi \
79 $(NULL)
b02f9b5 @Keruspe fix distcheck
Keruspe authored
80
be54a3e @Keruspe Huge autotools cleanup
Keruspe authored
81 CLEANFILES = \
82 $(nodist_applications_in_files) \
83 $(nodist_applications_DATA) \
84 $(nodist_autostart_in_files) \
85 $(nodist_man_MANS) \
92c43a0 @Keruspe build-sys: modularize automake chain
Keruspe authored
86 $(NULL)
2615e95 @Keruspe initial experimental gnome-shell extension
Keruspe authored
87
be54a3e @Keruspe Huge autotools cleanup
Keruspe authored
88 # Special rules
5b3c9ca @Keruspe autotoolize gsettings schema
Keruspe authored
89
378690c @Keruspe update schemas & desktop gettext stuff
Keruspe authored
90 @INTLTOOL_DESKTOP_RULE@
5b3c9ca @Keruspe autotoolize gsettings schema
Keruspe authored
91
a0aaf46 @Keruspe avoid non portable rules
Keruspe authored
92 SUFFIXES = .service .service.in .json .json.in .desktop.in .desktop.in.in
93 .service.in.service:
fde98a7 @Keruspe use AC_PROG_SED
Keruspe authored
94 $(AM_V_GEN) $(SED) -e 's,[@]pkglibexecdir[@],$(pkglibexecdir),g' <$^ >$@
a0aaf46 @Keruspe avoid non portable rules
Keruspe authored
95 .json.in.json:
b54fb8b @Keruspe oops
Keruspe authored
96 @ $(MKDIR_P) src/applets/gnome-shell
082bd2d @Keruspe automake stuff cleanup
Keruspe authored
97 $(AM_V_GEN) $(SED) -e 's,[@]localedir[@],$(localedir),g' \
98 -e 's,[@]pkglibexecdir[@],$(pkglibexecdir),g' \
99 < $< > $@
a0aaf46 @Keruspe avoid non portable rules
Keruspe authored
100 .desktop.in.in.desktop.in:
fde98a7 @Keruspe use AC_PROG_SED
Keruspe authored
101 $(AM_V_GEN) $(SED) -e 's,[@]pkglibexecdir[@],$(pkglibexecdir),g' < $< > $@
a0aaf46 @Keruspe avoid non portable rules
Keruspe authored
102
e5f495b @Keruspe add wrapper to update-po
Keruspe authored
103 update-po:
104 $(MAKE) -C po $@
105
09bb687 @Keruspe Release GPaste 1.6
Keruspe authored
106 release:
107 git commit -asm "Release $(PACKAGE_NAME) $(PACKAGE_VERSION)"
108 git tag -sm "Release $(PACKAGE_NAME) $(PACKAGE_VERSION)" v$(PACKAGE_VERSION)
109 $(MAKE) distcheck
110
92c43a0 @Keruspe build-sys: modularize automake chain
Keruspe authored
111 # Specific parts
112
113 include libgpaste/libgpaste.mk
114 include gi/gi.mk
115 include vapi/vapi.mk
116
117 include bin/gpasted.mk
118 include bin/gpaste.mk
119 include bin/gpaste-settings.mk
120 include bin/gpaste-applet.mk
554043a @Keruspe build-sys: fix distcheck without gnome-shell extension
Keruspe authored
121 include src/applets/gnome-shell/extension.mk
92c43a0 @Keruspe build-sys: modularize automake chain
Keruspe authored
122
123 include data/gsettings.mk
124 include data/dbus.mk
125 include data/completions/completions.mk
126
127 include man/man.mk
128
0dfe527 @Keruspe autogenerate ChangeLog
Keruspe authored
129 # Generate a ChangeLog file from 'git log'
130 dist-hook:
bb92091 @Keruspe clean dist-hook
Keruspe authored
131 @ if test -d "$(srcdir)/.git"; then \
132 echo Creating ChangeLog; \
133 cd "$(srcdir)"; \
134 ( \
135 echo -e '# Generated by Makefile. Do not edit.\n\n'; \
136 $(srcdir)/build-aux/missing --run git log --stat v2.0..; \
137 ) > ChangeLog.tmp; \
138 mv -f ChangeLog.tmp $(distdir)/ChangeLog; \
139 if test -f "ChangeLog.tmp"; then \
140 rm -f ChangeLog.tmp; \
141 echo Failed to generate ChangeLog >&2; \
142 fi; \
ea7b0fd @Keruspe fix whitespaces
Keruspe authored
143 else \
144 echo A git clone is required to generate a ChangeLog >&2; \
082bd2d @Keruspe automake stuff cleanup
Keruspe authored
145 fi
5f571d9 @Keruspe don't dist vapi file
Keruspe authored
146
147 # This is a little hacky:
148 # We're using a vapi we're building in other stuff we're building too.
149 # To make gpaste-settings and gpaste-applet depend on the vapi, we have
150 # to use the vala stamp files as targets. These stamp files are shipped
151 # with the generated sources and are tried to be uninstalled.
152 # Adding them to .PHONY avoids this.
153 .PHONY: bin_gpaste_settings_vala.stamp bin_gpaste_applet_vala.stamp
Something went wrong with that request. Please try again.