diff options
author | John Crispin <john@openwrt.org> | 2007-10-14 04:49:05 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2007-10-14 04:49:05 +0000 |
commit | 7558f0281fe69414821289db83750fbec3e36d3f (patch) | |
tree | 85acc5ad55ddb20b3f291fcd823483419cebc2bd /include/package.mk | |
parent | 92c40922e97b92f670d70cea5082a95e25c0423a (diff) | |
download | upstream-7558f0281fe69414821289db83750fbec3e36d3f.tar.gz upstream-7558f0281fe69414821289db83750fbec3e36d3f.tar.bz2 upstream-7558f0281fe69414821289db83750fbec3e36d3f.zip |
DESCRIPTION:= is obselete, so complain if it is used and use TITLE if no description is set
SVN-Revision: 9307
Diffstat (limited to 'include/package.mk')
-rw-r--r-- | include/package.mk | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/package.mk b/include/package.mk index d90bec8872..a9819642dd 100644 --- a/include/package.mk +++ b/include/package.mk @@ -80,14 +80,15 @@ define BuildPackage $(eval $(Package/Default)) $(eval $(Package/$(1))) -# <HACK> Support obsolete DESCRIPTION field +ifdef DESCRIPTION +$$(error DESCRIPTION:= is obselete, use Package/PKG_NAME/description) +endif + ifndef Package/$(1)/description define Package/$(1)/description -$(TITLE)$(subst \, -,\ $(DESCRIPTION)) + $(TITLE) endef endif -# </HACK> $(foreach FIELD, TITLE CATEGORY PRIORITY SECTION VERSION, ifeq ($($(FIELD)),) |