[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Move mk-symlinks target into tools/Rules.mk.
# HG changeset patch # User cl349@xxxxxxxxxxxxxxxxxxxx # Node ID 82e48750542cf6709958319a72d2af3bff93b012 # Parent a90691f5207cf8d01490d0901da24bc4e1459529 Move mk-symlinks target into tools/Rules.mk. Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx> diff -r a90691f5207c -r 82e48750542c tools/Rules.mk --- a/tools/Rules.mk Mon Nov 28 16:37:15 2005 +++ b/tools/Rules.mk Mon Nov 28 17:07:22 2005 @@ -1,4 +1,7 @@ # -*- mode: Makefile; -*- + +# `all' is the default target +all: include $(XEN_ROOT)/Config.mk @@ -27,3 +30,13 @@ %.o: %.cc $(CC) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $< + +mk-symlinks: LINUX_ROOT=$(XEN_ROOT)/linux-2.6-xen-sparse +mk-symlinks: + mkdir -p xen + ( cd xen && ln -sf ../$(XEN_ROOT)/xen/include/public/*.h . ) + mkdir -p xen/io + ( cd xen/io && ln -sf ../../$(XEN_ROOT)/xen/include/public/io/*.h . ) + mkdir -p xen/linux + ( cd xen/linux && \ + ln -sf ../../$(LINUX_ROOT)/include/asm-xen/linux-public/*.h . ) diff -r a90691f5207c -r 82e48750542c tools/blktap/Makefile --- a/tools/blktap/Makefile Mon Nov 28 16:37:15 2005 +++ b/tools/blktap/Makefile Mon Nov 28 17:07:22 2005 @@ -47,17 +47,6 @@ $(MAKE) -C $$subdir $@; \ done -LINUX_ROOT := $(wildcard $(XEN_ROOT)/linux-2.6.*-xen-sparse) -mk-symlinks: - [ -e xen/linux ] || mkdir -p xen/linux - [ -e xen/io ] || mkdir -p xen/io - ( cd xen >/dev/null ; \ - ln -sf ../$(XEN_ROOT)/xen/include/public/*.h . ) - ( cd xen/io >/dev/null ; \ - ln -sf ../../$(XEN_ROOT)/xen/include/public/io/*.h . ) - ( cd xen/linux >/dev/null ; \ - ln -sf ../../$(LINUX_ROOT)/include/asm-xen/linux-public/*.h . ) - install: all $(INSTALL_DIR) -p $(DESTDIR)/usr/$(LIBDIR) $(INSTALL_DIR) -p $(DESTDIR)/usr/include diff -r a90691f5207c -r 82e48750542c tools/libxc/Makefile --- a/tools/libxc/Makefile Mon Nov 28 16:37:15 2005 +++ b/tools/libxc/Makefile Mon Nov 28 17:07:22 2005 @@ -83,17 +83,6 @@ false; \ fi -LINUX_ROOT := $(XEN_ROOT)/linux-2.6-xen-sparse -mk-symlinks: - [ -e xen/linux ] || mkdir -p xen/linux - [ -e xen/io ] || mkdir -p xen/io - ( cd xen >/dev/null ; \ - ln -sf ../$(XEN_ROOT)/xen/include/public/*.h . ) - ( cd xen/io >/dev/null ; \ - ln -sf ../../$(XEN_ROOT)/xen/include/public/io/*.h . ) - ( cd xen/linux >/dev/null ; \ - ln -sf ../../$(LINUX_ROOT)/include/asm-xen/linux-public/*.h . ) - install: build [ -d $(DESTDIR)/usr/$(LIBDIR) ] || $(INSTALL_DIR) $(DESTDIR)/usr/$(LIBDIR) [ -d $(DESTDIR)/usr/include ] || $(INSTALL_DIR) $(DESTDIR)/usr/include diff -r a90691f5207c -r 82e48750542c tools/security/Makefile --- a/tools/security/Makefile Mon Nov 28 16:37:15 2005 +++ b/tools/security/Makefile Mon Nov 28 17:07:22 2005 @@ -69,14 +69,3 @@ boot_install: $(POLICYFILE) @cp $(POLICYFILE) /boot @./updategrub.sh $(POLICY) $(PWD)/$(XEN_ROOT) - -LINUX_ROOT := $(XEN_ROOT)/linux-2.6-xen-sparse -mk-symlinks: - [ -e xen/linux ] || mkdir -p xen/linux - [ -e xen/io ] || mkdir -p xen/io - ( cd xen >/dev/null ; \ - ln -sf ../$(XEN_ROOT)/xen/include/public/*.h . ) - ( cd xen/io >/dev/null ; \ - ln -sf ../../$(XEN_ROOT)/xen/include/public/io/*.h . ) - ( cd xen/linux >/dev/null ; \ - ln -sf ../../$(LINUX_ROOT)/include/asm-xen/linux-public/*.h . ) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |