mirror of
https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9.git
synced 2026-09-09 00:08:12 +08:00
17 lines
337 B
Makefile
17 lines
337 B
Makefile
ifeq ($(filter rh-% rhg-%,$(MAKECMDGOALS)),)
|
|||
|
|
include Makefile
|
||
|
|
endif
|
||
|
|
|
||
|
|
_OUTPUT := "."
|
||
|
|
# this section is needed in order to make O= to work
|
||
|
|
ifeq ("$(origin O)", "command line")
|
||
|
|
_OUTPUT := "$(abspath $(O))"
|
||
|
|
_EXTRA_ARGS := O=$(_OUTPUT)
|
||
|
|
endif
|
||
|
|
rh-%::
|
||
|
|
$(MAKE) -C redhat $(@) $(_EXTRA_ARGS)
|
||
|
|
|
||
|
|
rhg-%::
|
||
|
|
$(MAKE) -C redhat $(@) $(_EXTRA_ARGS)
|
||
|
|
|