1XEN_ROOT = $(CURDIR)/../.. 2include $(XEN_ROOT)/tools/Rules.mk 3 4# Xen configuration dir and configs to go there. 5 6XEN_READMES = README 7 8XEN_CONFIGS += xlexample.hvm 9XEN_CONFIGS += xlexample.pvlinux 10XEN_CONFIGS += xlexample.pvhlinux 11XEN_CONFIGS += xl.conf 12XEN_CONFIGS += cpupool 13 14.PHONY: all 15all: 16 17.PHONY: install 18install: all install-readmes install-configs 19 20.PHONY: uninstall 21uninstall: uninstall-readmes uninstall-configs 22 23.PHONY: install-readmes 24install-readmes: 25 $(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR) 26 $(INSTALL_DATA) $(XEN_READMES) $(DESTDIR)$(XEN_CONFIG_DIR) 27 28.PHONY: uninstall-readmes 29uninstall-readmes: 30 rm -f $(addprefix $(DESTDIR)$(XEN_CONFIG_DIR)/, $(XEN_READMES)) 31 32.PHONY: install-configs 33install-configs: $(XEN_CONFIGS) 34 $(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR) 35 $(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR)/auto 36 $(INSTALL_DATA) $(XEN_CONFIGS) $(DESTDIR)$(XEN_CONFIG_DIR) 37 38.PHONY: uninstall-configs 39uninstall-configs: 40 rm -f $(addprefix $(DESTDIR)$(XEN_CONFIG_DIR)/, $(XEN_CONFIGS)) 41 42.PHONY: clean 43clean: 44 45.PHONY: distclean 46distclean: clean 47