split package.mk and clean up build system code (based on patch by mbm), makes the...
[openwrt-10.03/.git] / include / package-dumpinfo.mk
1
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 ifneq ($(DUMP),)
9 define Dumpinfo 
10   dumpinfo: dumpinfo-$(1)
11   dumpinfo-$(1): FORCE
12         @echo "Package: $(1)" ; \
13          $(if $(MENU),echo "Menu: $(MENU)";) \
14          $(if $(SUBMENU),echo "Submenu: $(SUBMENU)";) \
15          $(if $(SUBMENUDEP),echo "Submenu-Depends: $(SUBMENUDEP)";) \
16          $(if $(DEFAULT),echo "Default: $(DEFAULT)";)  \
17          if [ "$$$$PREREQ_CHECK" = 1 ]; then echo "Prereq-Check: 1"; fi; \
18          echo "Version: $(VERSION)"; \
19          echo "Depends: $(DEPENDS)"; \
20          echo "Provides: $(PROVIDES)"; \
21          echo "Build-Depends: $(PKG_BUILD_DEPENDS)"; \
22          echo "Section: $(SECTION)"; \
23          echo "Category: $(CATEGORY)"; \
24          echo "Title: $(TITLE)"; \
25          echo "Maintainer: $(MAINTAINER)"; \
26          echo -n "Description: "; \
27          getvar $(call shvar,Package/$(1)/description); \
28          $(if $(URL),echo;echo "$(URL)";) \
29          echo "@@" ; \
30          $$(if $$(Package/$(1)/config),echo "Config: "; getvar $(call shvar,Package/$(1)/config); echo "@@")
31 endef
32 endif