Commit 5158238c authored by Roland Levillain's avatar Roland Levillain
Browse files

Generate Milena's mln/version.hh in the source tree.

	* Makefile.am ($(srcdir)/mln/version.hh): New target, generating
	mln/version.hh in the source tree using make instead of configure.
	(edit): New.
	(EXTRA_DIST): Add mln/version.hh.in
	(nobase_nodist_include_HEADERS): Remove mln/version.hh.
	* mln/version.hh: New (generated).
	* headers.mk: Regen.
parent ffd06991
2013-09-06 Roland Levillain <roland@lrde.epita.fr>
Generate Milena's mln/version.hh in the source tree.
* Makefile.am ($(srcdir)/mln/version.hh): New target, generating
mln/version.hh in the source tree using make instead of configure.
(edit): New.
(EXTRA_DIST): Add mln/version.hh.in
(nobase_nodist_include_HEADERS): Remove mln/version.hh.
* mln/version.hh: New (generated).
* headers.mk: Regen.
2013-09-05 Roland Levillain <roland@lrde.epita.fr>
 
Remove an unnecessary #include from an example of the tutorial.
# Copyright (C) 2007, 2008, 2009, 2012 EPITA Research and Development
# Copyright (C) 2007, 2008, 2009, 2012, 2013 EPITA Research and Development
# Laboratory (LRDE).
#
# This file is part of Olena.
......@@ -76,8 +76,28 @@ $(srcdir)/headers.mk: $(top_srcdir)/build-aux/generate_dist_headers.sh
include $(srcdir)/headers.mk
# Generated by configure from mln/version.hh.in.
nobase_nodist_include_HEADERS = mln/version.hh
# Package metadata (mln/version.hh).
#
# Note that contrary to $(top_srcdir)/config.h, mln/version.hh is
# meant to be installed and is part of the library.
edit = sed -e 's,@PACKAGE_BUGREPORT[@],$(PACKAGE_BUGREPORT),g' \
-e 's,@PACKAGE_NAME[@],$(PACKAGE_NAME),g' \
-e 's,@PACKAGE_STRING[@],$(PACKAGE_STRING),g' \
-e 's,@PACKAGE_VERSION[@],$(PACKAGE_VERSION),g' \
-e 's,@PACKAGE_URL[@],$(PACKAGE_URL),g' \
-e 's,@PACKAGE_AUTHORS[@],$(PACKAGE_AUTHORS),g'
EXTRA_DIST = mln/version.hh.in
$(srcdir)/mln/version.hh: mln/version.hh.in $(top_srcdir)/configure.ac Makefile.am
rm -f $@ $@.tmp
srcdir=''; \
test -f ./$@.in || srcdir=$(srcdir)/; \
$(edit) $${srcdir}$@.in >$@.tmp
chmod a-w $@.tmp
mv $@.tmp $@
imgdir = $(pkgdatadir)/images
dist_img_DATA = \
......@@ -107,7 +127,7 @@ dist_img_DATA = \
img/tiny.ppm \
img/toto.pbm
EXTRA_DIST = \
EXTRA_DIST += \
tests/img/test_rgb8.tif \
tests/img/test_bw.tif \
tests/img/test_gl.tif
......
......@@ -1298,6 +1298,7 @@ mln/value/sign.hh \
mln/value/super_value.hh \
mln/value/value_array.hh \
mln/value/viter.hh \
mln/version.hh \
mln/win/all.hh \
mln/win/backdiag2d.hh \
mln/win/ball.hh \
......
// Copyright (C) 2009, 2011 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/>.
/// \file
/// \brief Package metadata (name, version, etc.)
#ifndef MLN_VERSION_HH
# define MLN_VERSION_HH
/// The address where bug reports should be sent.
#define OLN_PACKAGE_BUGREPORT "olena@lrde.epita.fr"
/// The full name of this package.
#define OLN_PACKAGE_NAME "Olena"
// The full name and version of this package.
#define OLN_PACKAGE_STRING "Olena 2.0a"
/// The version of this package.
#define OLN_PACKAGE_VERSION "2.0a"
/// Home page for this package.
#define OLN_PACKAGE_URL "http://olena.lrde.epita.fr"
/// Authors of the package.
#define OLN_PACKAGE_AUTHORS "EPITA Research and Development Laboratory (LRDE)"
#endif // ! MLN_VERSION_HH
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment