2011-11-10 13:17:04 -05:00
# Copyright (C) 2011 Colin Walters <walters@verbum.org>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library 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
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
2014-01-03 11:39:27 -05:00
i n c l u d e M a k e f i l e - d e c l s . a m
2014-01-11 10:02:34 -07:00
ACLOCAL_AMFLAGS = -I m4 ${ ACLOCAL_FLAGS }
2014-01-03 11:39:27 -05:00
AM_CPPFLAGS += -DDATADIR= '"$(datadir)"' -DLIBEXECDIR= '"$(libexecdir)"' \
2014-09-08 11:47:58 -04:00
-DLOCALEDIR= \" $( datadir) /locale\" -DSYSCONFDIR= \" $( sysconfdir) \" \
-DGPGVPATH= \" $( GPGVPATH) \" \
2013-05-01 19:15:06 -04:00
-DOSTREE_FEATURES= '"$(OSTREE_FEATURES)"' \
2014-08-18 16:19:00 -04:00
-DGLIB_VERSION_MIN_REQUIRED= GLIB_VERSION_2_36 -DGLIB_VERSION_MAX_ALLOWED= GLIB_VERSION_2_36 \
2014-09-09 09:30:02 -04:00
-DSOUP_VERSION_MIN_REQUIRED= SOUP_VERSION_2_40 -DSOUP_VERSION_MAX_ALLOWED= SOUP_VERSION_2_48
2014-01-03 11:39:27 -05:00
AM_CFLAGS += $( WARN_CFLAGS)
DISTCHECK_CONFIGURE_FLAGS += --enable-gtk-doc --disable-maintainer-mode
2013-08-16 22:54:35 -04:00
SUBDIRS += .
2013-08-16 23:14:30 -04:00
i f E N A B L E _ G T K _ D O C
2013-08-16 22:54:35 -04:00
SUBDIRS += doc
2012-06-07 17:21:55 -04:00
e n d i f
2013-09-11 19:55:24 -04:00
EXTRA_DIST += autogen.sh COPYING README.md
2012-09-25 18:44:08 -04:00
2012-06-07 17:21:55 -04:00
OT_INTERNAL_GIO_UNIX_CFLAGS = $( OT_DEP_GIO_UNIX_CFLAGS)
OT_INTERNAL_GIO_UNIX_LIBS = $( OT_DEP_GIO_UNIX_LIBS)
2012-06-14 16:22:23 -04:00
OT_INTERNAL_SOUP_CFLAGS = $( OT_DEP_SOUP_CFLAGS)
OT_INTERNAL_SOUP_LIBS = $( OT_DEP_SOUP_LIBS)
2012-06-07 17:21:55 -04:00
2013-07-26 19:25:07 -04:00
i f B U I L D O P T _ I N T R O S P E C T I O N
i n c l u d e $( INTROSPECTION_MAKEFILE )
GIRS =
TYPELIBS = $( GIRS:.gir= .typelib)
e n d i f
2011-11-02 15:45:32 -04:00
i n c l u d e M a k e f i l e - o t u t i l . a m
i n c l u d e M a k e f i l e - l i b o s t r e e . a m
i n c l u d e M a k e f i l e - o s t r e e . a m
2012-02-05 16:02:44 -05:00
i n c l u d e M a k e f i l e - s w i t c h r o o t . a m
2013-05-01 15:26:21 -04:00
i n c l u d e M a k e f i l e - t e s t s . a m
2013-10-22 22:04:32 +02:00
i n c l u d e M a k e f i l e - b o o t . a m
2013-05-01 15:26:21 -04:00
2012-03-31 12:34:11 -04:00
release-tag :
git tag -m " Release $( VERSION) " v$( VERSION)
2012-06-07 17:21:55 -04:00
2012-08-17 20:51:36 -04:00
embed_dependency = tar -C $( srcdir) --append --exclude= '.git/*' --transform= " s,^embedded-dependencies/,ostree-embeddeps- $$ {GITVERSION}/embedded-dependencies/, " --file= $$ { TARFILE_TMP}
git_version_rpm = $$ ( git describe | sed -e 's,-,\.,g' -e 's,^v,,' )
2012-06-14 16:22:23 -04:00
2012-06-07 17:21:55 -04:00
release-tarball-embedded :
2012-08-17 20:51:36 -04:00
set -x; \
GITVERSION = $( git_version_rpm) ; export GITVERSION; \
TARFILE_TMP = ostree-embeddeps-$$ { GITVERSION} .tar.tmp; \
REV = $$ ( git rev-parse HEAD) ; \
echo " Archiving ostree at $$ {REV} " ; \
( cd $( srcdir) ; git archive --format= tar --prefix= ostree-embeddeps-$$ { GITVERSION} / $$ { REV} ) > $$ { TARFILE_TMP} ; \
( cd $$ ( git rev-parse --show-toplevel) ; git submodule status) | while read line; do \
rev = $$ ( echo $$ line | cut -f 1 -d ' ' ) ; path = $$ ( echo $$ line | cut -f 2 -d ' ' ) ; \
echo " Archiving $$ {path} at $$ {rev} " ; \
( cd $( srcdir) /$$ path; git archive --format= tar --prefix= ostree-embeddeps-$$ { GITVERSION} /$$ path/ $$ { rev} ) > submodule.tar; \
tar -A -f $$ { TARFILE_TMP} submodule.tar; \
rm submodule.tar; \
done ; \
echo "Archiving glib" ; \
$( embed_dependency) embedded-dependencies/glib; \
echo "Archiving libsoup" ; \
$( embed_dependency) embedded-dependencies/libsoup; \
mv ostree-embeddeps-$$ { GITVERSION} .tar{ .tmp,} ; \
gzip -f ostree-embeddeps-$$ { GITVERSION} .tar
2013-08-27 19:34:58 -04:00
check-local :
@echo " *** NOTE ***"
@echo " *** NOTE ***"
@echo " ostree only supports https://live.gnome.org/GnomeGoals/InstalledTests"
@echo " To run them, ostree must be configured with --enable-installed-tests and installed"
@echo " *** NOTE ***"
@echo " *** NOTE ***"