2011-01-18 09:24:57 +00:00
|
|
|
# Makefile.am for anaconda
|
|
|
|
#
|
|
|
|
# Copyright (C) 2009 Red Hat, Inc.
|
|
|
|
#
|
|
|
|
# This program 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.1 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program 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 program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
|
|
|
# Author: David Cantrell <dcantrell@redhat.com>
|
|
|
|
|
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
2015-03-23 11:36:12 +00:00
|
|
|
AM_DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
|
|
|
|
|
2014-04-07 12:38:09 +00:00
|
|
|
SUBDIRS = data docs dracut po pyanaconda scripts tests widgets utils
|
2011-01-18 09:24:57 +00:00
|
|
|
|
2013-03-26 07:37:43 +00:00
|
|
|
EXTRA_DIST = config.rpath COPYING
|
2011-01-18 09:24:57 +00:00
|
|
|
|
2015-03-23 11:36:12 +00:00
|
|
|
# Files generated for gettext need to be included in the distribution
|
|
|
|
EXTRA_DIST += $(srcdir)/anaconda.po
|
|
|
|
$(srcdir)/anaconda.po: $(srcdir)/anaconda
|
|
|
|
@$(MAKE) -C $(top_builddir)/po $(abs_top_srcdir)/$(subdir)/$$(basename $@)
|
|
|
|
|
2011-01-18 09:24:57 +00:00
|
|
|
MAINTAINERCLEANFILES = Makefile.in config.guess config.h.in config.sub \
|
|
|
|
depcomp install-sh ltmain.sh missing ABOUT-NLS \
|
2014-04-07 12:38:09 +00:00
|
|
|
INSTALL aclocal.m4 configure *.pyc py-compile \
|
|
|
|
m4/* config.rpath po/Makefile.in.in po/Rules-quot \
|
|
|
|
test-driver
|
2011-01-18 09:24:57 +00:00
|
|
|
|
2013-03-26 07:37:43 +00:00
|
|
|
CLEANFILES = *~
|
2011-01-18 09:24:57 +00:00
|
|
|
|
|
|
|
dist_noinst_DATA = $(PACKAGE_NAME).spec
|
|
|
|
|
|
|
|
dist_sbin_SCRIPTS = anaconda
|
|
|
|
|
|
|
|
ARCHIVE_TAG = $(PACKAGE_NAME)-$(PACKAGE_VERSION)-$(PACKAGE_RELEASE)
|
|
|
|
|
2015-03-23 11:36:12 +00:00
|
|
|
TX_PULL_ARGS = -a -f
|
2013-01-23 17:28:19 +00:00
|
|
|
TX_PUSH_ARGS = -s
|
|
|
|
|
2015-03-23 11:36:12 +00:00
|
|
|
INSTALLATION_GUIDE_REPO_URL = git://git.fedorahosted.org/git/docs/install-guide.git
|
|
|
|
|
2011-01-18 09:24:57 +00:00
|
|
|
tag:
|
|
|
|
@git tag -s -a -m "Tag as $(ARCHIVE_TAG)" $(ARCHIVE_TAG)
|
|
|
|
@echo "Tagged as $(ARCHIVE_TAG)"
|
|
|
|
|
2013-01-23 17:28:19 +00:00
|
|
|
po-pull:
|
|
|
|
rpm -q transifex-client &>/dev/null || ( echo "need to run: yum install transifex-client"; exit 1 )
|
|
|
|
tx pull $(TX_PULL_ARGS)
|
2011-01-18 09:24:57 +00:00
|
|
|
|
2015-03-23 11:36:12 +00:00
|
|
|
po-empty:
|
|
|
|
for lingua in $$(grep -v '^#' $(srcdir)/po/LINGUAS) ; do \
|
|
|
|
[ -f $(srcdir)/po/$$lingua.po ] || \
|
|
|
|
msginit -i $(srcdir)/po/$(PACKAGE_NAME).pot -o $(srcdir)/po/$$lingua.po --no-translator || \
|
|
|
|
exit 1 ; \
|
|
|
|
done
|
|
|
|
|
|
|
|
scratch: po-empty get-help
|
2013-01-23 17:28:19 +00:00
|
|
|
$(MAKE) ARCHIVE_TAG=HEAD dist
|
2014-04-07 12:38:09 +00:00
|
|
|
git checkout -- $(srcdir)/po/$(PACKAGE_NAME).pot
|
|
|
|
|
2015-03-23 11:36:12 +00:00
|
|
|
scratch-bumpver: po-empty get-help
|
2014-04-07 12:38:09 +00:00
|
|
|
@opts="-n $(PACKAGE_NAME) -v $(PACKAGE_VERSION) -r $(PACKAGE_RELEASE) -b $(PACKAGE_BUGREPORT)" ; \
|
|
|
|
if [ ! -z "$(IGNORE)" ]; then \
|
|
|
|
opts="$${opts} -i $(IGNORE)" ; \
|
|
|
|
fi ; \
|
|
|
|
if [ ! -z "$(MAP)" ]; then \
|
|
|
|
opts="$${opts} -m $(MAP)" ; \
|
|
|
|
fi ; \
|
|
|
|
if [ ! -z "$(BZDEBUG)" ]; then \
|
|
|
|
opts="$${opts} -d" ; \
|
|
|
|
fi ; \
|
2015-03-23 11:36:12 +00:00
|
|
|
if [ ! -z "$(SKIP_ACKS)" ]; then \
|
|
|
|
opts="$${opts} -s" ; \
|
|
|
|
fi ; \
|
2014-04-07 12:38:09 +00:00
|
|
|
( cd $(srcdir) && scripts/makebumpver $${opts} ) || exit 1 ; \
|
|
|
|
$(MAKE) -C po $(PACKAGE_NAME).pot-update ;
|
2011-01-18 09:24:57 +00:00
|
|
|
|
2015-03-23 11:36:12 +00:00
|
|
|
release: get-help
|
2014-04-07 12:38:09 +00:00
|
|
|
$(MAKE) dist && $(MAKE) tag && git checkout -- $(srcdir)/po/$(PACKAGE_NAME).pot
|
2011-01-18 09:24:57 +00:00
|
|
|
|
|
|
|
api:
|
|
|
|
doxygen docs/api.cfg
|
|
|
|
|
2013-01-23 17:28:19 +00:00
|
|
|
bumpver: po-pull
|
|
|
|
@opts="-n $(PACKAGE_NAME) -v $(PACKAGE_VERSION) -r $(PACKAGE_RELEASE) -b $(PACKAGE_BUGREPORT)" ; \
|
|
|
|
if [ ! -z "$(IGNORE)" ]; then \
|
|
|
|
opts="$${opts} -i $(IGNORE)" ; \
|
|
|
|
fi ; \
|
|
|
|
if [ ! -z "$(MAP)" ]; then \
|
|
|
|
opts="$${opts} -m $(MAP)" ; \
|
|
|
|
fi ; \
|
|
|
|
if [ ! -z "$(BZDEBUG)" ]; then \
|
|
|
|
opts="$${opts} -d" ; \
|
|
|
|
fi ; \
|
2015-03-23 11:36:12 +00:00
|
|
|
if [ ! -z "$(SKIP_ACKS)" ]; then \
|
|
|
|
opts="$${opts} -s" ; \
|
|
|
|
fi ; \
|
2014-04-07 12:38:09 +00:00
|
|
|
( cd $(srcdir) && scripts/makebumpver $${opts} ) || exit 1 ; \
|
|
|
|
$(MAKE) -C po $(PACKAGE_NAME).pot-update && \
|
2013-01-23 17:28:19 +00:00
|
|
|
tx push $(TX_PUSH_ARGS)
|
2011-01-18 09:24:57 +00:00
|
|
|
|
2014-04-07 12:38:09 +00:00
|
|
|
# Install all packages specified as BuildRequires in the Anaconda specfile
|
|
|
|
# -> installs packages needed to build Anaconda
|
2011-01-18 09:24:57 +00:00
|
|
|
install-buildrequires:
|
2014-04-07 12:38:09 +00:00
|
|
|
srcdir="$(srcdir)" && \
|
|
|
|
: $${srcdir:=.} && \
|
|
|
|
yum install $$(grep BuildRequires: $${srcdir}/anaconda.spec.in | cut -d ' ' -f 2)
|
|
|
|
|
|
|
|
# Install all packages specified as Requires in the Anaconda specfile
|
|
|
|
# -> installs packages needed to run Anaconda and the Anaconda unit tests
|
|
|
|
install-requires:
|
|
|
|
srcdir="$(srcdir)" && \
|
|
|
|
: $${srcdir:=.} && \
|
|
|
|
yum install $$(grep Requires: $${srcdir}/anaconda.spec.in | cut -d ' ' -f 2)
|
2011-01-18 09:24:57 +00:00
|
|
|
|
|
|
|
# Generate an updates.img based on the changed files since the release
|
|
|
|
# was tagged. Updates are copied to ./updates-img and then the image is
|
|
|
|
# created. By default, the updates subdirectory is removed after the
|
|
|
|
# image is made, but if you want to keep it around, run:
|
|
|
|
# make updates.img KEEP=y
|
|
|
|
updates:
|
|
|
|
@opts="-c" ; \
|
|
|
|
keep="$$(echo $(KEEP) | cut -c1 | tr [a-z] [A-Z])" ; \
|
|
|
|
if [ "$${keep}" = "Y" ]; then \
|
|
|
|
opts="$${opts} -k" ; \
|
|
|
|
fi ; \
|
2014-04-07 12:38:09 +00:00
|
|
|
( cd $(srcdir) && scripts/makeupdates $${opts} -b '$(abs_builddir)' )
|
2011-01-18 09:24:57 +00:00
|
|
|
|
2013-01-23 17:28:19 +00:00
|
|
|
# UNIT TESTING TARGETS
|
|
|
|
unittests-logpicker:
|
2014-04-07 12:38:09 +00:00
|
|
|
PYTHONPATH=$(builddir)/pyanaconda/isys/.libs:tests/:$(srcdir):utils/ nosetests -v old_tests/logpicker_test
|
2013-01-23 17:28:19 +00:00
|
|
|
|
|
|
|
# GUI TESTING
|
|
|
|
runspoke:
|
2014-04-07 12:38:09 +00:00
|
|
|
ANACONDA_DATA=$(srcdir)/data \
|
|
|
|
ANACONDA_WIDGETS_OVERRIDES=$(srcdir)/widgets/python \
|
|
|
|
ANACONDA_WIDGETS_DATA=$(srcdir)/widgets/data \
|
|
|
|
ANACONDA_INSTALL_CLASSES=$(srcdir)/pyanaconda/installclasses \
|
|
|
|
PYTHONPATH=$(srcdir):$(builddir)/pyanaconda/isys/.libs:$(srcdir)/widgets/python/:$(builddir)/widgets/src/.libs/ \
|
|
|
|
LD_LIBRARY_PATH=$(builddir)/widgets/src/.libs \
|
|
|
|
UIPATH=$(srcdir)/pyanaconda/ui/gui/ \
|
|
|
|
GI_TYPELIB_PATH=$(builddir)/widgets/src/ \
|
|
|
|
$(srcdir)/pyanaconda/ui/gui/tools/run-spoke.py ${SPOKE_MODULE} ${SPOKE_CLASS}
|
2013-01-23 17:28:19 +00:00
|
|
|
|
|
|
|
runhub:
|
2014-04-07 12:38:09 +00:00
|
|
|
ANACONDA_DATA=$(srcdir)/data \
|
|
|
|
ANACONDA_WIDGETS_OVERRIDES=$(srcdir)/widgets/python \
|
|
|
|
ANACONDA_WIDGETS_DATA=$(srcdir)/widgets/data \
|
|
|
|
ANACONDA_INSTALL_CLASSES=$(srcdir)/pyanaconda/installclasses \
|
|
|
|
PYTHONPATH=$(srcdir):$(builddir)/pyanaconda/isys/.libs:$(srcdir)/widgets/python/:$(builddir)/widgets/src/.libs/ \
|
|
|
|
LD_LIBRARY_PATH=$(builddir)/widgets/src/.libs \
|
|
|
|
UIPATH=$(srcdir)/pyanaconda/ui/gui/ \
|
|
|
|
GI_TYPELIB_PATH=$(builddir)/widgets/src/ \
|
|
|
|
$(srcdir)/pyanaconda/ui/gui/tools/run-hub.py ${HUB_MODULE} ${HUB_CLASS}
|
2013-01-23 17:28:19 +00:00
|
|
|
|
|
|
|
runtextspoke:
|
2014-04-07 12:38:09 +00:00
|
|
|
ANACONDA_DATA=$(srcdir)/data \
|
|
|
|
ANACONDA_INSTALL_CLASSES=$(srcdir)/pyanaconda/installclasses \
|
|
|
|
PYTHONPATH=$(srcdir):$(builddir)/pyanaconda/isys/.libs:$(srcdir)/widgets/python/:$(builddir)/widgets/src/.libs/ \
|
|
|
|
LD_LIBRARY_PATH=$(builddir)/widgets/src/.libs \
|
|
|
|
$(srcdir)/pyanaconda/ui/tui/tools/run-text-spoke.py ${SPOKE_MODULE} ${SPOKE_CLASS}
|
2013-01-23 17:28:19 +00:00
|
|
|
|
|
|
|
runtexthub:
|
2014-04-07 12:38:09 +00:00
|
|
|
ANACONDA_DATA=$(srcdir)/data \
|
|
|
|
ANACONDA_INSTALL_CLASSES=$(srcdir)/pyanaconda/installclasses \
|
|
|
|
PYTHONPATH=$(srcdir):$(builddir)/pyanaconda/isys/.libs:$(srcdir)/widgets/python/:$(builddir)/widgets/src/.libs/ \
|
|
|
|
LD_LIBRARY_PATH=$(builddir)/widgets/src/.libs \
|
|
|
|
$(srcdir)/pyanaconda/ui/tui/tools/run-text-hub.py ${HUB_MODULE} ${HUB_CLASS}
|
2013-01-23 17:28:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
runglade:
|
2014-04-07 12:38:09 +00:00
|
|
|
ANACONDA_DATA=$(srcdir)/data \
|
|
|
|
ANACONDA_WIDGETS_OVERRIDES=$(srcdir)/widgets/python \
|
|
|
|
ANACONDA_WIDGETS_DATA=$(srcdir)/widgets/data \
|
|
|
|
ANACONDA_INSTALL_CLASSES=$(srcdir)/pyanaconda/installclasses \
|
|
|
|
PYTHONPATH=$(srcdir):$(builddir)/pyanaconda/isys/.libs:$(srcdir)/widgets/python/:$(builddir)/widgets/src/.libs/ \
|
|
|
|
LD_LIBRARY_PATH=$(builddir)/widgets/src/.libs \
|
|
|
|
UIPATH=$(srcdir)/pyanaconda/ui/gui/ \
|
|
|
|
GI_TYPELIB_PATH=$(builddir)/widgets/src/ \
|
|
|
|
GLADE_CATALOG_SEARCH_PATH=$(srcdir)/widgets/glade \
|
|
|
|
GLADE_MODULE_SEARCH_PATH=$(builddir)/widgets/src/.libs \
|
2013-01-23 17:28:19 +00:00
|
|
|
glade ${GLADE_FILE}
|
2015-03-23 11:36:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Get content for the Anaconda built-in help system by cloning the
|
|
|
|
# installation guide git repository and running the help processing
|
|
|
|
# script (it is part of the repository).
|
|
|
|
# Once the help content has been generated copy it to our help folder,
|
|
|
|
# so that it can be included in the tarball.
|
|
|
|
# Skip the git clone if the repository already exists but run git pull
|
|
|
|
# to make sure it is up to date. We also clone the repository
|
|
|
|
# without history as it si rather big (>400 MB!), which is quite
|
|
|
|
# an overkill for <100 kB of help conent. :)
|
|
|
|
get-help:
|
|
|
|
if [ ! -d "install-guide" ]; then \
|
|
|
|
if [ -f "installation_guide_repo_url" ]; then \
|
|
|
|
git clone --depth=1 `cat installation_guide_repo_url` ; \
|
|
|
|
else \
|
|
|
|
git clone --depth=1 $(INSTALLATION_GUIDE_REPO_URL) ; \
|
|
|
|
fi ; \
|
|
|
|
fi ; \
|
|
|
|
( cd install-guide && git pull --rebase && python prepare_anaconda_help_content.py )
|
|
|
|
cp -r install-guide/anaconda_help_content/* $(srcdir)/data/help
|