ia64/xen-unstable

view tools/vnet/Makefile @ 6946:e703abaf6e3d

Add behaviour to the remove methods to remove the transaction's path itself. This allows us to write Remove(path) to remove the specified path rather than having to slice the path ourselves.
author emellor@ewan
date Sun Sep 18 14:42:13 2005 +0100 (2005-09-18)
parents 3233e7ecfa9f
children 06d84bf87159
line source
1 # -*- mode: Makefile; -*-
3 ifndef VNET_ROOT
4 export VNET_ROOT = $(shell pwd)
5 include $(VNET_ROOT)/Make.env
6 endif
8 .PHONY: all compile install dist clean pristine
9 .PHONY: gc-all gc-install gc-clean
11 SUBDIRS:=
12 SUBDIRS+= examples
13 SUBDIRS+= gc
14 SUBDIRS+= libxutil
15 SUBDIRS+= vnetd
16 SUBDIRS+= vnet-module
18 all: compile
20 gc.tar.gz:
21 wget http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/$@
23 gc: gc.tar.gz
24 tar xfz gc.tar.gz
25 ln -sf gc?.? gc
27 $(GC_LIB_A): gc
28 (cd gc && ./configure --prefix=$(GC_DIR) )
29 make -C gc
30 DESTDIR="" make -C gc install
32 gc-all: $(GC_LIB_A)
34 gc-install:
36 gc-clean:
37 -@$(RM) -r gc?.? gc
39 submak = $(MAKE) -C $(patsubst %-$(1),%,$(@)) $(1)
40 subtgt = $(patsubst %,%-$(1),$(SUBDIRS))
42 %-all:
43 $(call submak,all)
45 %-clean:
46 -$(call submak,clean)
48 %-install:
49 $(call submak,install)
51 compile: $(call subtgt,all)
53 install: DESTDIR=
54 install: dist
56 dist: compile $(call subtgt,install)
58 clean: $(call subtgt,clean)
59 -@$(RM) -r build
61 pristine: clean
62 -@$(RM) gc.tar.gz