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
|
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2002,2003 Colin Walters <walters@debian.org>
# Description: Builds and cleans packages which have a Makefile
#
# This program 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; either version 2, 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
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
# 02111-1307 USA.
ifndef _cdbs_bootstrap
_cdbs_scripts_path ?= /usr/lib/cdbs
_cdbs_rules_path ?= /usr/share/cdbs/1/rules
_cdbs_class_path ?= /usr/share/cdbs/1/class
endif
ifndef _cdbs_class_makefile
_cdbs_class_makefile := 1
include $(_cdbs_class_path)/makefile-vars.mk$(_cdbs_makefile_suffix)
common-build-arch common-build-indep:: common-build-impl
common-build-impl::
$(DEB_MAKE_INVOKE) $(DEB_MAKE_BUILD_TARGET)
clean::
$(DEB_MAKE_INVOKE) -k $(DEB_MAKE_CLEAN_TARGET) || true
common-install-arch common-install-indep:: common-install-impl
common-install-impl::
@if test -n "$(DEB_MAKE_INSTALL_TARGET)"; then \
echo $(DEB_MAKE_ENVVARS) make -C $(DEB_BUILDDIR) $(DEB_MAKE_INSTALL_TARGET); \
$(DEB_MAKE_INVOKE) $(DEB_MAKE_INSTALL_TARGET); \
else \
echo "DEB_MAKE_INSTALL_TARGET unset, skipping default makefile.mk common-install target"; \
fi
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
common-post-build-arch common-post-build-indep:: common-post-build-impl
common-post-build-impl::
@if test -n "$(DEB_MAKE_CHECK_TARGET)"; then \
echo $(DEB_MAKE_INVOKE) $(DEB_MAKE_CHECK_TARGET); \
$(DEB_MAKE_INVOKE) $(DEB_MAKE_CHECK_TARGET); \
else \
echo "DEB_MAKE_CHECK_TARGET unset, not running checks"; \
fi
endif
endif
|