# build and install everything into the standard system directories
install: install-xen install-tools install-kernels install-docs
+build: kernels
+ $(MAKE) -C xen build
+ $(MAKE) -C tools build
+ $(MAKE) -C docs build
+
# build and install everything into local dist directory
dist: xen tools kernels docs
$(INSTALL_DIR) $(DISTDIR)/check
GFX = $(patsubst %.fig, %.eps, $(wildcard figs/*.fig))
-all: ps pdf html
+all: build
+build: ps pdf html
rm -f *.aux *.dvi *.bbl *.blg *.glo *.idx *.ilg *.log *.ind *.toc
ps: $(DOC_PS)
$(MAKE) -C xfrd install
$(MAKE) -C sv install
-clean:
- $(MAKE) -C check clean
- $(MAKE) -C libxutil clean
- $(MAKE) -C libxc clean
- $(MAKE) -C misc clean
- $(MAKE) -C examples clean
- $(MAKE) -C xentrace clean
- $(MAKE) -C python clean
- $(MAKE) -C xfrd clean
+clean build:
+ $(MAKE) -C check $@
+ $(MAKE) -C libxutil $@
+ $(MAKE) -C libxc $@
+ $(MAKE) -C misc $@
+ $(MAKE) -C examples $@
+ $(MAKE) -C xentrace $@
+ $(MAKE) -C python $@
+ $(MAKE) -C xfrd $@
XEN_SCRIPTS += block-enbd
all:
+build:
install: all install-initd install-configs install-scripts
LIB := libxc.a libxc.so libxc.so.$(MAJOR) libxc.so.$(MAJOR).$(MINOR)
-all: check-for-zlib mk-symlinks
+all: build
+build: check-for-zlib mk-symlinks
$(MAKE) $(LIB)
check-for-zlib:
( cd xen/linux >/dev/null ; \
ln -sf ../../$(LINUX_ROOT)/include/asm-xen/linux-public/*.h . )
-install: all
+install: build
[ -d $(DESTDIR)/usr/lib ] || $(INSTALL_DIR) $(DESTDIR)/usr/lib
[ -d $(DESTDIR)/usr/include ] || $(INSTALL_DIR) $(DESTDIR)/usr/include
$(INSTALL_PROG) libxc.so.$(MAJOR).$(MINOR) $(DESTDIR)/usr/lib
clean:
rm -rf *.a *.so* *.o *.opic *.rpm $(LIB) *~ $(DEPS) xen
-rpm: all
+rpm: build
rm -rf staging
mkdir staging
mkdir staging/i386
LIB += libxutil.so.$(MAJOR).$(MINOR)
LIB += libxutil.a
-all: check-for-zlib
+all: build
+build: check-for-zlib
$(MAKE) $(LIB)
libxutil.so: libxutil.so.$(MAJOR)
false; \
fi
-install: all
+install: build
[ -d $(DESTDIR)/usr/lib ] || $(INSTALL_DIR) -p $(DESTDIR)/usr/lib
$(INSTALL_PROG) libxutil.so.$(MAJOR).$(MINOR) $(DESTDIR)/usr/lib
$(INSTALL_DATA) libxutil.a $(DESTDIR)/usr/lib
INSTALL_BIN = $(TARGETS) xencons
INSTALL_SBIN = netfix xm xend xensv xenperf
-all: $(TARGETS)
+all: build
+build: $(TARGETS)
$(MAKE) -C miniterm
-install: all
+install: build
[ -d $(DESTDIR)/usr/bin ] || $(INSTALL_DIR) $(DESTDIR)/usr/bin
[ -d $(DESTDIR)/usr/sbin ] || $(INSTALL_DIR) $(DESTDIR)/usr/sbin
$(INSTALL_PROG) $(INSTALL_BIN) $(DESTDIR)/usr/bin
XEN_ROOT = ../..
include $(XEN_ROOT)/tools/Rules.mk
-all:
+all: build
+build:
CFLAGS="$(CFLAGS)" python setup.py build
install: all
MAN1 = $(wildcard *.1)
MAN8 = $(wildcard *.8)
-all: $(BIN)
+all: build
+build: $(BIN)
-install: all
+install: build
[ -d $(DESTDIR)/usr/bin ] || $(INSTALL_DIR) $(DESTDIR)/usr/bin
[ -d $(DESTDIR)/usr/man/man1 ] || \
$(INSTALL_DIR) $(DESTDIR)/usr/man/man1
#$(warning XFRD_LIBS = $(XFRD_LIBS))
-all: xfrd
+all: build
+build: xfrd
xfrd: $(XFRD_PROG_OBJ)
$(CC) -o $@ $^ $(XFRD_LIBS)
include Rules.mk
-default: $(TARGET).gz
+default: build
$(TARGET).gz: $(TARGET)
gzip -f -9 < $< > $@.new
mv $@.new $@
debug:
objdump -D -S $(TARGET)-syms > $(TARGET).s
-dist:
- $(MAKE) install
+dist: install
+build: $(TARGET).gz
+
install: $(TARGET).gz
[ -d $(DESTDIR)/boot ] || $(INSTALL_DIR) $(DESTDIR)/boot
$(INSTALL_DATA) $(TARGET).gz $(DESTDIR)/boot