forked from OCR-D/olena
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
126 lines (109 loc) · 3.83 KB
/
Makefile.am
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
122
123
124
125
126
# Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 EPITA
# Research and Development Laboratory (LRDE).
#
# This file is part of Olena.
#
# Olena is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation, version 2 of the License.
#
# Olena is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Olena. If not, see <http://www.gnu.org/licenses/>.
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = build-aux milena
if ENABLE_SWILENA
SUBDIRS += swilena
endif ENABLE_SWILENA
if ENABLE_SCRIBO
SUBDIRS += scribo
endif ENABLE_SCRIBO
# We rely on Automake to ensure that the documentions are generated in
# the right order. Here, we make sure that the general documentation
# will be generated after Milena's and Scribo's documentation.
if ENABLE_DOC
SUBDIRS += doc
endif ENABLE_DOC
# Target shortcuts delegating the actual action to milena/Makefile.
LOCAL_RECURSIVE_TARGETS = tests
.PHONY: $(LOCAL_RECURSIVE_TARGETS)
$(LOCAL_RECURSIVE_TARGETS):
cd milena && $(MAKE) $(AM_MAKEFLAGS) $@
cd scribo && $(MAKE) $(AM_MAKEFLAGS) $@
.PHONY: pretty-check
pretty-check:
cd milena && $(MAKE) $(AM_MAKEFLAGS) $@
# Regen files recursively.
include $(top_srcdir)/build-aux/regen-recursive.mk
REGEN_SUBDIRS += milena scribo
TARBALL_GZ = $(distdir).tar.gz
do_subst = \
sed -e 's|@packagename[@]|$(PACKAGE_TARNAME)|g' \
-e 's|@version[@]|$(PACKAGE_VERSION)|g' \
-e "s|@package_md5[@]|`md5sum $(TARBALL_GZ) | cut -d ' ' -f 1`|g" \
-e "s|@package_sha1[@]|`openssl sha1 $(TARBALL_GZ) | cut -d ' ' -f 2`|g" \
-e "s|@package_rmd160[@]|`openssl rmd160 $(TARBALL_GZ) | cut -d ' ' -f 2`|g"
PORTFILE = distrib/macports/Portfile
$(PORTFILE): distrib/macports/Portfile.in Makefile dist
rm -f $@ [email protected]
rm -Rf distrib
srcdir=''; \
test -f ./[email protected] || srcdir=$(srcdir)/; \
$(MKDIR_P) distrib/macports
$(do_subst) $(srcdir)/[email protected] >[email protected]
chmod +x [email protected]
chmod a-w [email protected]
mv [email protected] $@
CLEANFILES = $(PORTFILE)
.PHONY: port
port: $(PORTFILE)
deb:
git-buildpackage --git-export-dir=../build-area/ \
--git-builder="debuild -i'\.git' -I.git "
# Set the package version to olena-x.x-snapshot-dd-mm-yy.
#
# Do not check NEWS file (this is not a release so there is no
# entries in this file for this package).
snapshot:
current_date=`date +'%d-%m-%y'` \
&& sed -e "s/^\(AC_INIT(\[Olena\],\) \[\([\.[:alnum:]]*\)\(-snapshot-.*-[[:alnum:]]*\)*\], \(.*\)/\1 [\2-snapshot-$$current_date], \4/g" \
-e 's/ check-news / /g' \
$(srcdir)/configure.ac > $(srcdir)/configure.ac.tmp \
&& cp -f $(srcdir)/configure.ac $(srcdir)/configure.ac.old \
&& cp -f $(srcdir)/configure.ac.tmp $(srcdir)/configure.ac \
&& $(MAKE) $(AM_MAKEFLAGS) dist \
&& mv -f $(srcdir)/configure.ac.old $(srcdir)/configure.ac
# Extra files for debian package generation.
pixmapsdir = $(datarootdir)/pixmaps
dist_pixmaps_DATA = debian/olena.xpm
EXTRA_DIST = \
debian/olena.install \
debian/olena-dev.doc-base \
debian/watch \
debian/gbp.conf \
debian/compat \
debian/README.Debian \
debian/rules \
debian/olena.manpages \
debian/changelog \
debian/olena-bin.menu \
debian/HOWTO \
debian/olena-bin.desktop \
debian/control \
debian/olena-dev.install \
debian/scribo-cli.1 \
debian/olena-bin.install \
debian/olena-dev.docs \
debian/scribo-viewer.1 \
debian/olena.1 \
debian/copyright \
debian/source \
debian/source/local-options \
debian/source/options \
debian/source/format \
debian/source/lintian-overrides\
debian/olena-bin.manpages