summaryrefslogtreecommitdiff
path: root/scripts/metadata.pl
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-09-01 17:51:36 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-09-01 17:51:36 +0000
commit00d1e599d753602c18f34d9642574d70b97e607d (patch)
tree8e81bd68be8fbbb35642d243211ede63a864ee10 /scripts/metadata.pl
parentea70b60a072edab2da2ae77e91c21f233c548eff (diff)
downloadmtk-20170518-00d1e599d753602c18f34d9642574d70b97e607d.zip
mtk-20170518-00d1e599d753602c18f34d9642574d70b97e607d.tar.gz
mtk-20170518-00d1e599d753602c18f34d9642574d70b97e607d.tar.bz2
add a command for printing a cleaned up make target database - will be used to analyze package dependencies at some point
SVN-Revision: 22871
Diffstat (limited to 'scripts/metadata.pl')
-rwxr-xr-xscripts/metadata.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl
index 7902dec..a9242d0 100755
--- a/scripts/metadata.pl
+++ b/scripts/metadata.pl
@@ -763,6 +763,7 @@ sub gen_package_mk() {
next unless $cmds;
print <<EOF
+ifndef DUMP_TARGET_DB
\$(TARGET_DIR)/etc/uci-defaults/$preconfig: FORCE
( \\
$cmds \\
@@ -771,6 +772,8 @@ $cmds \\
ifneq (\$(IMAGEOPT)\$(CONFIG_IMAGEOPT),)
package/preconfig: \$(TARGET_DIR)/etc/uci-defaults/$preconfig
endif
+endif
+
EOF
}
}