I'm trying to get what would ordinarily be a straightforward make recipe into a package Makefile. It's "just" some shell scripting that needs access to some make variables. No download, extract, patch, configure, compile, just run the bash commands with access to the make variables.
I am struggling with quoting as well as trying to figure out why make V=s package/my-package/compile is apparently executing Package/my-package/install
make -p isn't showing the rules/recipes for my-package
Is there a straightforward way to get a "dump" of the resultant rules/recipes around a package within the OpenWRT build system?
I usually replace the $(eval $(call BuildPackage,...)) with $(error $(call BuildPackage,...)) - this will dump the entire dynamically generated ruleset to stderr.
For all practical purposes, there is no distinction between the make package/.../compile and make package/.../install targets. The compile: goal depends on $(STAGING_DIR_ROOT)/stamp/.$(1)_installed which (through another stampfile) depends on $(STAMP_BUILT) and executes the package/.../install target. See include/package-ipkg.mk for reference.
The install: target is a mere alias of compile:, see include/package.mk for reference.