[smuxi] Build: install assembly config of smuxi-message-buffer



commit 7cb908de1874a865ee516e65cf2407380eb61f23
Author: Mirco Bauer <meebey meebey net>
Date:   Sat Mar 22 22:57:17 2014 +0100

    Build: install assembly config of smuxi-message-buffer

 src/Engine-MessageBuffer/Makefile.am |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/src/Engine-MessageBuffer/Makefile.am b/src/Engine-MessageBuffer/Makefile.am
index c6a042a..e77185a 100644
--- a/src/Engine-MessageBuffer/Makefile.am
+++ b/src/Engine-MessageBuffer/Makefile.am
@@ -2,6 +2,8 @@ TARGET_DIR = $(top_builddir)/bin/$(PROFILE)
 BIN_WRAPPER = smuxi-message-buffer
 ASSEMBLY_NAME = smuxi-message-buffer
 ASSEMBLY_FILENAME = $(ASSEMBLY_NAME).exe
+ASSEMBLY_CONFIG_SOURCE = $(ASSEMBLY_FILENAME).config
+ASSEMBLY_CONFIG = $(TARGET_DIR)/$(ASSEMBLY_CONFIG_SOURCE)
 ASSEMBLY_TARGET = $(TARGET_DIR)/$(ASSEMBLY_FILENAME)
 
 SOURCES = \
@@ -22,11 +24,16 @@ DLL_REFERENCES = \
 
 SOURCES_BUILD = $(addprefix $(srcdir)/, $(SOURCES))
 
+PROGRAMFILES = $(ASSEMBLY_CONFIG)
+
 BINARIES = $(BIN_WRAPPER)
 
 # automake magic variables
-EXTRA_DIST = $(SOURCES_BUILD) $(man_MANS)
-CLEANFILES = $(ASSEMBLY_TARGET) $(ASSEMBLY_TARGET).mdb
+EXTRA_DIST = $(SOURCES_BUILD) $(man_MANS) $(ASSEMBLY_CONFIG_SOURCE)
+CLEANFILES = \
+       $(PROGRAMFILES) \
+       $(BINARIES) \
+       $(ASSEMBLY_TARGET) $(ASSEMBLY_TARGET).mdb
 
 pkgapp_DATA = $(ASSEMBLY_TARGET) $(ASSEMBLY_TARGET).mdb
 man_MANS = smuxi-message-buffer.1
@@ -35,5 +42,7 @@ include $(top_srcdir)/Makefile.include
 
 all: $(ASSEMBLY_TARGET)
 
+$(eval $(call emit-deploy-target,ASSEMBLY_CONFIG))
+
 $(ASSEMBLY_TARGET): $(SOURCES) $(DLL_REFERENCES)
        $(CSC) $(CSC_FLAGS) $(MSG_BUFFER_COMPILER_FLAGS) $(build_references_ref) -target:exe 
-out:$(ASSEMBLY_TARGET) $(SOURCES_BUILD)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]