summaryrefslogtreecommitdiff
path: root/include/makeinclude/install.bor
diff options
context:
space:
mode:
Diffstat (limited to 'include/makeinclude/install.bor')
-rw-r--r--include/makeinclude/install.bor37
1 files changed, 37 insertions, 0 deletions
diff --git a/include/makeinclude/install.bor b/include/makeinclude/install.bor
new file mode 100644
index 00000000000..54866eef6bd
--- /dev/null
+++ b/include/makeinclude/install.bor
@@ -0,0 +1,37 @@
+#
+# Rules for installing files
+#
+
+# This ugliness is to remove extra spaces from between the items in the list.
+INSTALL_TYPES_1 = $(INSTALL_TYPES) $(BLANK_SPACE)
+INSTALL_TYPES_2 = $(INSTALL_TYPES_1: =%)
+INSTALL_TYPES_3 = $(INSTALL_TYPES_2:%%=%)
+INSTALL_TYPES_4 = $(INSTALL_TYPES_3:%%=%)
+INSTALL_TYPES_5 = $(INSTALL_TYPES_4:%=_install )
+
+!ifdef INSTALL_THIS_TARGET
+install: $(INSTALL_TYPES_5)
+!else
+install:
+!endif
+ @echo Do Nothing 1> NUL
+
+exe_install: $(TARGET)
+ @$(MAKE_INSTALL_EXEDIR)
+ -&copy "$**" $(INSTALL_EXEDIR) 1> NUL
+
+!ifdef DEBUG
+dll_install: $(TARGET) $(TARGET:.dll=.tds)
+!else
+dll_install: $(TARGET)
+!endif
+ @$(MAKE_INSTALL_DLLDIR)
+ -&copy "$**" $(INSTALL_DLLDIR) 1> NUL
+
+lib_install: $(TARGET:.dll=.lib)
+ @$(MAKE_INSTALL_LIBDIR)
+ -&copy "$**" $(INSTALL_LIBDIR) 1> NUL
+
+includes_install: $(INCLUDES)
+ @$(MAKE_INSTALL_INCDIR)
+ -&copy "$**" $(INSTALL_INCDIR) 1> NUL