aboutsummaryrefslogtreecommitdiffstats
path: root/include/package-defaults.mk
Commit message (Expand)AuthorAgeFilesLines
* add a configurable prefix for ./configureFelix Fietkau2007-12-271-8/+9
* add STAGING_DIR_HOST to PKG_CONFIG_PATHFelix Fietkau2007-12-231-1/+1
* DESCRIPTION:= is obselete, so complain if it is used and use TITLE if no desc...John Crispin2007-10-141-1/+0
* move a stampfile to make it easier to override the patch templateFelix Fietkau2007-09-291-0/+1
* fix typo (thanks to jonasg[1] on irc)Nicolas Thill2007-09-051<
# 
# Copyright (C) 2007 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

SUBTARGETS:=clean download prepare compile install update refresh prereq dist distcheck

subtarget-default = $(filter-out ., \
	$(if $($(1)/builddirs-$(2)),$($(1)/builddirs-$(2)), \
	$(if $($(1)/builddirs-default),$($(1)/builddirs-default), \
	$($(1)/builddirs))))

define subtarget
  $(call warn_eval,$(1),t,T,$(1)/$(2): $($(1)/) $(foreach bd,$(call subtarget-default,$(1),$(2)),$(1)/$(bd)/$(2)))

endef


lastdir=$(word $(words $(subst /, ,$(1))),$(subst /, ,$(1)))
diralias=$(if $(findstring $(1),$(call lastdir,$(1))),,$(call lastdir,$(1)))