add a command for printing a cleaned up make target database - will be used to analyz...
[openwrt/openwrt.git] / scripts / metadata.pl
index 7902dec3efb90063bc01e29f70d8cbb909b9ef71..a9242d0a7fb9353eaa8e74b566d5efcbcfdd1c84 100755 (executable)
@@ -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
        }
 }