ia64/xen-unstable

view Makefile @ 4750:efa6730ad90e

bitkeeper revision 1.1159.258.112 (4277a730mvnFSFXrxJpVRNk8hjD4Vg)

[PATCH] Mkbuildtree little fix

Hi, here is a really small fix for mkbuildtree.

With my 'find' version [1], I get many of these warning when using mkbuildtree:

find: warning: you have specified the -maxdepth option after a
non-option argument -type, but options are not positional (-maxdepth
affects tests specified before it as well as those specified after it).
Please specify options before other arguments.

My patch just correct the ordering of the options, it should be
harmless, but I didn't test with other versions of find.

Regards

[1] find --version
GNU find version 4.2.20
Features enabled: D_TYPE O_NOFOLLOW(enabled)

xen-unstable-mkbuildtree-find-maxpath.patch:
author ydroneaud@mandriva.com[kaf24]
date Tue May 03 16:30:40 2005 +0000 (2005-05-03)
parents 86510b27bbf0
children 8d23fe716501 dade12e98fcc 783e437809b6
line source
1 #
2 # Grand Unified Makefile for Xen.
3 #
5 # Default is to install to local 'dist' directory.
6 DISTDIR ?= $(CURDIR)/dist
7 DESTDIR ?= $(DISTDIR)/install
9 INSTALL := install
10 INSTALL_DIR := $(INSTALL) -d -m0755
11 INSTALL_DATA := $(INSTALL) -m0644
12 INSTALL_PROG := $(INSTALL) -m0755
14 KERNELS ?= linux-2.6-xen0 linux-2.6-xenU
15 # linux-2.4-xen0 linux-2.4-xenU netbsd-2.0-xenU
16 # You may use wildcards in the above e.g. KERNELS=*2.4*
18 ALLKERNELS = $(patsubst buildconfigs/mk.%,%,$(wildcard buildconfigs/mk.*))
19 ALLSPARSETREES = $(patsubst %-xen-sparse,%,$(wildcard *-xen-sparse))
20 XKERNELS := $(foreach kernel, $(KERNELS), $(patsubst buildconfigs/mk.%,%,$(wildcard buildconfigs/mk.$(kernel))) )
22 export DESTDIR
24 # Export target architecture overrides to Xen and Linux sub-trees.
25 ifneq ($(TARGET_ARCH),)
26 SUBARCH := $(subst x86_32,i386,$(TARGET_ARCH))
27 export TARGET_ARCH SUBARCH
28 endif
30 include buildconfigs/Rules.mk
32 .PHONY: all dist install xen tools kernels docs world clean mkpatches mrproper
33 .PHONY: kbuild kdelete kclean
35 all: dist
37 # build and install everything into the standard system directories
38 install: install-xen install-tools install-kernels install-docs
40 build: kernels
41 $(MAKE) -C xen build
42 $(MAKE) -C tools build
43 $(MAKE) -C docs build
45 # build and install everything into local dist directory
46 dist: xen tools kernels docs
47 $(INSTALL_DIR) $(DISTDIR)/check
48 $(INSTALL_DATA) ./COPYING $(DISTDIR)
49 $(INSTALL_DATA) ./README $(DISTDIR)
50 $(INSTALL_PROG) ./install.sh $(DISTDIR)
51 $(INSTALL_PROG) tools/check/chk tools/check/check_* $(DISTDIR)/check
53 xen:
54 $(MAKE) -C xen install
56 tools:
57 $(MAKE) -C tools install
59 kernels:
60 for i in $(XKERNELS) ; do $(MAKE) $$i-build || exit 1; done
62 docs:
63 sh ./docs/check_pkgs && $(MAKE) -C docs install || true
65 # Build all the various kernels and modules
66 kbuild: kernels
68 # Delete the kernel build trees entirely
69 kdelete:
70 for i in $(XKERNELS) ; do $(MAKE) $$i-delete ; done
72 # Clean the kernel build trees
73 kclean:
74 for i in $(XKERNELS) ; do $(MAKE) $$i-clean ; done
76 # Make patches from kernel sparse trees
77 mkpatches:
78 for i in $(ALLSPARSETREES) ; do $(MAKE) $$i-xen.patch; done
80 # build xen, the tools, and a domain 0 plus unprivileged linux-xen images,
81 # and place them in the install directory. 'make install' should then
82 # copy them to the normal system directories
83 world:
84 $(MAKE) clean
85 $(MAKE) kdelete
86 $(MAKE) dist
88 # clean doesn't do a kclean
89 clean:
90 $(MAKE) -C xen clean
91 $(MAKE) -C tools clean
92 $(MAKE) -C docs clean
94 # clean, but blow away kernel build tree plus tar balls
95 mrproper: clean
96 rm -rf dist patches/tmp
97 for i in $(ALLKERNELS) ; do $(MAKE) $$i-delete ; done
98 for i in $(ALLSPARSETREES) ; do $(MAKE) $$i-mrproper ; done
100 install-twisted:
101 wget http://www.twistedmatrix.com/products/get-current.epy
102 tar -zxf Twisted-*.tar.gz
103 cd Twisted-* && python setup.py install
105 install-logging: LOGGING=logging-0.4.9.2
106 install-logging:
107 [ -f $(LOGGING).tar.gz ] || wget http://www.red-dove.com/$(LOGGING).tar.gz
108 tar -zxf $(LOGGING).tar.gz
109 cd $(LOGGING) && python setup.py install
111 # handy target to upgrade iptables (use rpm or apt-get in preference)
112 install-iptables:
113 wget http://www.netfilter.org/files/iptables-1.2.11.tar.bz2
114 tar -jxf iptables-1.2.11.tar.bz2
115 $(MAKE) -C iptables-1.2.11 PREFIX= KERNEL_DIR=../linux-$(LINUX_VER)-xen0 install
117 install-%: DESTDIR=
118 install-%: %
119 @: # do nothing
121 help:
122 @echo 'Installation targets:'
123 @echo ' install - build and install everything'
124 @echo ' install-xen - build and install the Xen hypervisor'
125 @echo ' install-tools - build and install the control tools'
126 @echo ' install-kernels - build and install guest kernels'
127 @echo ' install-docs - build and install documentation'
128 @echo ''
129 @echo 'Building targets:'
130 @echo ' dist - build and install everything into local dist directory'
131 @echo ' world - clean everything, delete guest kernel build'
132 @echo ' trees then make dist'
133 @echo ' xen - build and install Xen hypervisor'
134 @echo ' tools - build and install tools'
135 @echo ' kernels - build and install guest kernels'
136 @echo ' kbuild - synonym for make kernels'
137 @echo ' docs - build and install docs'
138 @echo ''
139 @echo 'Cleaning targets:'
140 @echo ' clean - clean the Xen, tools and docs (but not'
141 @echo ' guest kernel) trees'
142 @echo ' mrproper - clean plus delete kernel tarballs and kernel'
143 @echo ' build trees'
144 @echo ' kdelete - delete guest kernel build trees'
145 @echo ' kclean - clean guest kernel build trees'
146 @echo ''
147 @echo 'Dependency installation targets:'
148 @echo ' install-twisted - install the Twisted Matrix Framework'
149 @echo ' install-logging - install the Python Logging package'
150 @echo ' install-iptables - install iptables tools'
151 @echo ''
152 @echo 'Miscellaneous targets:'
153 @echo ' mkpatches - make patches against vanilla kernels from'
154 @echo ' sparse trees'
155 @echo ' uninstall - attempt to remove installed Xen tools (use'
156 @echo ' with extreme care!)'
158 # Use this target with extreme care!
159 uninstall: DESTDIR=
160 uninstall: D=$(DESTDIR)
161 uninstall:
162 [ ! -d $(D)/etc/xen ] || mv -f $(D)/etc/xen $(D)/etc/xen.old
163 rm -rf $(D)/etc/init.d/xend*
164 rm -rf $(D)/usr/lib/libxc* $(D)/usr/lib/libxutil*
165 rm -rf $(D)/usr/lib/python/xen $(D)/usr/include/xen
166 rm -rf $(D)/usr/include/xcs_proto.h $(D)/usr/include/xc.h
167 rm -rf $(D)/usr/sbin/xcs $(D)/usr/sbin/xcsdump $(D)/usr/sbin/xen*
168 rm -rf $(D)/usr/sbin/netfix
169 rm -rf $(D)/usr/sbin/xfrd $(D)/usr/sbin/xm $(D)/var/lib/xen
170 rm -rf $(D)/usr/share/doc/xen $(D)/usr/man/man*/xentrace*
171 rm -rf $(D)/usr/bin/xen* $(D)/usr/bin/miniterm
172 rm -rf $(D)/boot/*xen*
174 # Legacy targets for compatibility
175 linux24:
176 $(MAKE) linux-2.4-xen0-build
177 $(MAKE) linux-2.4-xenU-build
179 linux26:
180 $(MAKE) linux-2.6-xen0-build
181 $(MAKE) linux-2.6-xenU-build
183 netbsd20:
184 $(MAKE) netbsd-2.0-xenU-build