forked from IkerST/docky
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.rules.core.mk
44 lines (37 loc) · 1.32 KB
/
build.rules.core.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Rules to more easily specify a C# build for automake.
#
# Inspired and adapted from Banshee's build system
include $(top_srcdir)/build.rules.common.mk
moduledir = $(pkglibdir)
# Install libraries as data; there's no need for them to be excutable
module_DATA = \
$(foreach file,$(filter %.dll,$(OUTPUT_FILES)),$(file)) \
$(foreach file,$(filter %.dll.mdb,$(OUTPUT_FILES)),$(file)) \
$(foreach file,$(filter %.exe.mdb,$(OUTPUT_FILES)),$(file))
# Install executables as scripts
module_SCRIPTS = $(filter %.exe,$(OUTPUT_FILES))
all: $(ASSEMBLY_FILE)
if ENABLE_DEBUG
$(ASSEMBLY_FILE).mdb: $(ASSEMBLY_FILE)
endif
build-debug :
@echo $(COMPONENT_REFERENCES)
#
# pkg-config handling
#
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = $(PKG_CONFIG_FILES)
%.pc : %.pc.in
@colors=no; \
case $$TERM in \
"xterm" | "rxvt" | "rxvt-unicode") \
test "x$$COLORTERM" != "x" && colors=yes ;; \
"xterm-color") colors=yes ;; \
esac; \
if [ "x$$colors" = "xyes" ]; then \
tty -s && true || { colors=no; true; } \
fi; \
test "x$$colors" = "xyes" && \
echo -e "\033[1mGenerating $(notdir $@)...\033[0m" || \
echo "Generating $(notdir $@)...";
@sed "s,\@ABI_VERSION\@,$(ABI_VERSION),g; s,\@expanded_libdir\@,$(expanded_libdir),g; s,\@PACKAGE\@,$(PACKAGE),g" < $< > $@