* Now working properly
[circ.git] / Makefile.include
blob54af0f690c8682076d6cbf59d4113ce58ffb8235
1 build_sources = $(FILES) $(GENERATED_FILES)
2 build_sources_embed = $(build_sources:%='$(srcdir)/%')
4 comma__=,
5 build_resx_list = $(foreach res, $(RESOURCES), $(if $(filter %.resx, $(firstword $(subst $(comma__), ,$(res)))),$(res),))
6 build_others_list = $(foreach res, $(RESOURCES), $(if $(filter %.resx, $(firstword $(subst $(comma__), ,$(res)))), ,$(res)))
8 build_resx_files = $(foreach res, $(build_resx_list), $(firstword $(subst $(comma__), ,$(res))))
9 build_resx_resources = $(build_resx_files:.resx=.resources)
10 build_resx_resources_hack = $(subst .resx,.resources, $(build_resx_list))
11 build_resx_resources_embed = $(build_resx_resources_hack:%='-resource:%')
13 build_others_files = $(foreach res, $(build_others_list), $(firstword $(subst $(comma__), ,$(res))))
14 build_others_resources = $(build_others_files)
15 build_others_resources_embed = $(build_others_list:%='-resource:$(srcdir)/%')
17 build_resources = $(build_resx_resources) $(build_others_resources)
18 build_resources_embed = $(build_resx_resources_embed) $(build_others_resources_embed)
20 build_references_ref = $(REFERENCES)
21 build_references_ref += $(foreach ref, $(DLL_REFERENCES), -r:$(ref))
22 build_references_ref += $(foreach ref, $(PROJECT_REFERENCES), -r:$(ref))
24 EXTRA_DIST += $(build_sources) $(build_resx_files) $(build_others_files) $(ASSEMBLY_WRAPPER_IN) $(EXTRAS) $(DATA_FILES)
25 CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb $(BINARIES) $(build_resx_resources)
26 DISTCLEANFILES = $(GENERATED_FILES) $(pc_files) $(BUILD_DIR)/*
28 pkglib_SCRIPTS = $(ASSEMBLY)
29 bin_SCRIPTS = $(BINARIES)
31 programfilesdir = @prefix@/lib/@PACKAGE@
32 programfiles_DATA = $(PROGRAMFILES)
33 linuxpkgconfigdir = @prefix@/lib/pkgconfig
34 linuxpkgconfig_DATA = $(LINUX_PKGCONFIG)