mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
Don't check if a target exist before installing it. For directory, install doesn't complain, and for file it would prevent from updating them. Also remove the existing loop and instead install all files with a single call to $(INSTALL_DATA). Remove XEN_CONFIGS-y which isn't used. Remove "build" target. Add an empty line after the first comment. The comment isn't about $(XEN_READMES), it is about the makefile as a whole. Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>
47 lines
1.0 KiB
Makefile
47 lines
1.0 KiB
Makefile
XEN_ROOT = $(CURDIR)/../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
# Xen configuration dir and configs to go there.
|
|
|
|
XEN_READMES = README
|
|
|
|
XEN_CONFIGS += xlexample.hvm
|
|
XEN_CONFIGS += xlexample.pvlinux
|
|
XEN_CONFIGS += xlexample.pvhlinux
|
|
XEN_CONFIGS += xl.conf
|
|
XEN_CONFIGS += cpupool
|
|
|
|
.PHONY: all
|
|
all:
|
|
|
|
.PHONY: install
|
|
install: all install-readmes install-configs
|
|
|
|
.PHONY: uninstall
|
|
uninstall: uninstall-readmes uninstall-configs
|
|
|
|
.PHONY: install-readmes
|
|
install-readmes:
|
|
$(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR)
|
|
$(INSTALL_DATA) $(XEN_READMES) $(DESTDIR)$(XEN_CONFIG_DIR)
|
|
|
|
.PHONY: uninstall-readmes
|
|
uninstall-readmes:
|
|
rm -f $(addprefix $(DESTDIR)$(XEN_CONFIG_DIR)/, $(XEN_READMES))
|
|
|
|
.PHONY: install-configs
|
|
install-configs: $(XEN_CONFIGS)
|
|
$(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR)
|
|
$(INSTALL_DIR) $(DESTDIR)$(XEN_CONFIG_DIR)/auto
|
|
$(INSTALL_DATA) $(XEN_CONFIGS) $(DESTDIR)$(XEN_CONFIG_DIR)
|
|
|
|
.PHONY: uninstall-configs
|
|
uninstall-configs:
|
|
rm -f $(addprefix $(DESTDIR)$(XEN_CONFIG_DIR)/, $(XEN_CONFIGS))
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
|
|
.PHONY: distclean
|
|
distclean: clean
|