ia64/xen-unstable

view netbsd-2.0-xen-sparse/Makefile @ 6966:a5d67e3fbff1

Make xs_mkdir an xs_rm idempotent.
When modifying libxenstore to transparently restart when the daemon dies,
it became apparent that life is simpler when all commands can simply be
restarted. So this patch makes a slight semantic change to xs_rm and xs_mkdir:
xs_rm now succeeds if the file doesn't exist (as long as the parent exists),
and xs_mkdir succeeds if the directory already exists.
Noone should notice.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Mon Sep 19 14:25:29 2005 +0000 (2005-09-19)
parents a01199a95070
children
line source
1 #
2 #
3 #
5 .PHONY: clean config install netbsd
7 TOPDIR ?= $(shell pwd)
8 NETBSD_RELEASE ?= $(patsubst netbsd-%-xen%,%,$(notdir $(TOPDIR)))
9 NETBSD_VER ?= $(patsubst netbsd-%-xen%,%,$(notdir $(TOPDIR)))
10 NETBSD_KERNEL ?= XEN
12 clean:
13 @mkdir -p compile/$(NETBSD_KERNEL)
14 cd compile/$(NETBSD_KERNEL) && TOPDIR=$(TOPDIR) NETBSD_VER=$(NETBSD_VER) ../../nbmake-xen cleandir
16 config:
17 @mkdir -p compile/$(NETBSD_KERNEL)
18 cd compile/$(NETBSD_KERNEL) && TOPDIR=$(TOPDIR) NETBSD_VER=$(NETBSD_VER) ../../nbconfig-xen $(NETBSD_KERNEL)
20 netbsd:
21 cd compile/$(NETBSD_KERNEL) && TOPDIR=$(TOPDIR) NETBSD_VER=$(NETBSD_VER) ../../nbmake-xen dependall
23 install:
24 @mkdir -p $(dir $(INSTALL_PATH)/$(INSTALL_NAME))
25 install -c compile/$(NETBSD_KERNEL)/netbsd $(INSTALL_PATH)/$(INSTALL_NAME)