GNUstep-make hooks

GNUstep-make hooks

GNUstep-make provides various double-colon rules that define integration points where you can run your own processes before, during, and after GNUstep-make actions.

For example, you can run additional steps after you build your app by defining after_$(GNUSTEP_INSTANCE)_all:: (where $(GNUSTEP_INSTANCE) is the name of your app), or supply the commands to run your tests when someone runs make check by defining internal-check::.

Global Hooks

These hooks are defined in Master/rules.make and apply to the entire build process:

Hook NameTarget-Specific VariantDescription
before-all::NoExecuted before building all targets
internal-all::NoInternal target for building all
after-all::NoExecuted after building all targets
before-jar::NoExecuted before creating JAR files
internal-jar::NoInternal target for creating JAR files
after-jar::NoExecuted after creating JAR files
before-install::NoExecuted before installation
internal-install::NoInternal target for installation
after-install::NoExecuted after installation
internal-after-install::NoInternal target after installation (for packaging)
before-uninstall::NoExecuted before uninstallation
internal-uninstall::NoInternal target for uninstallation
after-uninstall::NoExecuted after uninstallation
internal-after-uninstall::NoInternal target after uninstallation
before-clean::NoExecuted before cleaning
internal-clean::NoInternal target for cleaning
after-clean::NoExecuted after cleaning
before-distclean::NoExecuted before distcleaning
internal-distclean::NoInternal target for distcleaning
after-distclean::NoExecuted after distcleaning
before-check::NoExecuted before running checks
internal-check::NoInternal target for running checks
after-check::NoExecuted after running checks
before-strings::NoExecuted before processing strings
internal-strings::NoInternal target for processing strings
after-strings::NoExecuted after processing strings

Instance-Specific Hooks

These hooks are defined in Instance/rules.make and apply to specific instances (targets):

Hook NameTarget-Specific VariantDescription
before-$(GNUSTEP_INSTANCE)-all::YesExecuted before building a specific instance
after-$(GNUSTEP_INSTANCE)-all::YesExecuted after building a specific instance
before-$(GNUSTEP_INSTANCE)-jar::YesExecuted before creating JAR for a specific instance
after-$(GNUSTEP_INSTANCE)-jar::YesExecuted after creating JAR for a specific instance
before-$(GNUSTEP_INSTANCE)-install::YesExecuted before installing a specific instance
after-$(GNUSTEP_INSTANCE)-install::YesExecuted after installing a specific instance
before-$(GNUSTEP_INSTANCE)-uninstall::YesExecuted before uninstalling a specific instance
after-$(GNUSTEP_INSTANCE)-uninstall::YesExecuted after uninstalling a specific instance

Framework-Specific Hooks

These hooks are defined in Master/framework.make and apply only to framework builds:

Hook NameTarget-Specific VariantDescription
before-build-headers::NoExecuted before building framework headers
internal-build-headers::NoInternal target for building framework headers
after-build-headers::NoExecuted after building framework headers