[PATCH] Makefile.common: add scratch build targets

Till Maas opensource at till.name
Wed Jul 11 16:29:11 UTC 2007


On Mi Juli 11 2007, Till Maas wrote:

> @$(BUILD_CLIENT) build $(BUILD_FLAGS) $(TARGET) '$(CVS_URL)'
> @$(BUILD_CLIENT) build --scratch $(BUILD_FLAGS) $(TARGET) '$(CVS_URL)'
> @$(BUILD_CLIENT) build --scratch --arch-override=$* $(BUILD_FLAGS)
> $(TARGET) '$(CVS_URL)'

This new patch uses a variable and the $(call ...) to reduce the redundant 
code this way:

koji-build = $(BUILD_CLIENT) build $(1) $(BUILD_FLAGS) $(TARGET) '$(CVS_URL)'

koji: koji-check
       $(call koji-build)

scratch-build: koji-check
       $(call koji-build, --scratch)

scratch-build-%: koji-check
       $(call koji-build, --scratch --arch-overwrite=$*)

Regards,
Till
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile.common-scratch-build_koji-check_koji-build.patch
Type: text/x-makefile
Size: 2850 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/buildsys/attachments/20070711/0c8ac45b/attachment.bin 


More information about the buildsys mailing list