|
![](https://seccdn.libravatar.org/avatar/0988a4e1ba438efd5e1e90f8503938283125bffa0555f46da0ef90ddd186adb8?s=16&d=retro) |
4298bc2 |
# Makefile for source rpm: qemu
|
|
![](https://seccdn.libravatar.org/avatar/0574566f43c1c00fc46341c0de38109615382a6a19a01364719de3fb62465678?s=16&d=retro) |
8036bec |
# $Id: Makefile,v 1.1 2005/02/13 12:47:24 dwmw2 Exp $
|
|
![](https://seccdn.libravatar.org/avatar/0988a4e1ba438efd5e1e90f8503938283125bffa0555f46da0ef90ddd186adb8?s=16&d=retro) |
4298bc2 |
NAME := qemu
|
|
![](https://seccdn.libravatar.org/avatar/0988a4e1ba438efd5e1e90f8503938283125bffa0555f46da0ef90ddd186adb8?s=16&d=retro) |
4298bc2 |
SPECFILE = $(firstword $(wildcard *.spec))
|
|
![](https://seccdn.libravatar.org/avatar/0988a4e1ba438efd5e1e90f8503938283125bffa0555f46da0ef90ddd186adb8?s=16&d=retro) |
4298bc2 |
|
|
![](https://seccdn.libravatar.org/avatar/0988a4e1ba438efd5e1e90f8503938283125bffa0555f46da0ef90ddd186adb8?s=16&d=retro) |
4298bc2 |
define find-makefile-common
|
|
![](https://seccdn.libravatar.org/avatar/0574566f43c1c00fc46341c0de38109615382a6a19a01364719de3fb62465678?s=16&d=retro) |
8036bec |
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
|
![](https://seccdn.libravatar.org/avatar/0988a4e1ba438efd5e1e90f8503938283125bffa0555f46da0ef90ddd186adb8?s=16&d=retro) |
4298bc2 |
endef
|
|
![](https://seccdn.libravatar.org/avatar/0988a4e1ba438efd5e1e90f8503938283125bffa0555f46da0ef90ddd186adb8?s=16&d=retro) |
4298bc2 |
|
|
![](https://seccdn.libravatar.org/avatar/0988a4e1ba438efd5e1e90f8503938283125bffa0555f46da0ef90ddd186adb8?s=16&d=retro) |
4298bc2 |
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
![](https://seccdn.libravatar.org/avatar/0988a4e1ba438efd5e1e90f8503938283125bffa0555f46da0ef90ddd186adb8?s=16&d=retro) |
4298bc2 |
|
|
![](https://seccdn.libravatar.org/avatar/0988a4e1ba438efd5e1e90f8503938283125bffa0555f46da0ef90ddd186adb8?s=16&d=retro) |
4298bc2 |
ifeq ($(MAKEFILE_COMMON),)
|
|
![](https://seccdn.libravatar.org/avatar/0988a4e1ba438efd5e1e90f8503938283125bffa0555f46da0ef90ddd186adb8?s=16&d=retro) |
4298bc2 |
# attept a checkout
|
|
![](https://seccdn.libravatar.org/avatar/0988a4e1ba438efd5e1e90f8503938283125bffa0555f46da0ef90ddd186adb8?s=16&d=retro) |
4298bc2 |
define checkout-makefile-common
|
|
![](https://seccdn.libravatar.org/avatar/0988a4e1ba438efd5e1e90f8503938283125bffa0555f46da0ef90ddd186adb8?s=16&d=retro) |
4298bc2 |
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
|
![](https://seccdn.libravatar.org/avatar/0988a4e1ba438efd5e1e90f8503938283125bffa0555f46da0ef90ddd186adb8?s=16&d=retro) |
4298bc2 |
endef
|
|
![](https://seccdn.libravatar.org/avatar/0988a4e1ba438efd5e1e90f8503938283125bffa0555f46da0ef90ddd186adb8?s=16&d=retro) |
4298bc2 |
|
|
![](https://seccdn.libravatar.org/avatar/0988a4e1ba438efd5e1e90f8503938283125bffa0555f46da0ef90ddd186adb8?s=16&d=retro) |
4298bc2 |
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
![](https://seccdn.libravatar.org/avatar/0988a4e1ba438efd5e1e90f8503938283125bffa0555f46da0ef90ddd186adb8?s=16&d=retro) |
4298bc2 |
endif
|
|
![](https://seccdn.libravatar.org/avatar/0988a4e1ba438efd5e1e90f8503938283125bffa0555f46da0ef90ddd186adb8?s=16&d=retro) |
4298bc2 |
|
|
![](https://seccdn.libravatar.org/avatar/0988a4e1ba438efd5e1e90f8503938283125bffa0555f46da0ef90ddd186adb8?s=16&d=retro) |
4298bc2 |
include $(MAKEFILE_COMMON)
|