~ubuntu-branches/ubuntu/lucid/docky/lucid-proposed

« back to all changes in this revision

Viewing changes to build.rules.docklets.mk

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2010-02-17 15:10:07 UTC
  • Revision ID: james.westby@ubuntu.com-20100217151007-msxpd0lsj300ndde
Tags: upstream-2.0.0
ImportĀ upstreamĀ versionĀ 2.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Rules to more easily specify a C# build for automake.
 
2
#
 
3
# Inspired and adapted from Banshee's build system
 
4
 
 
5
include $(top_srcdir)/build.rules.common.mk
 
6
 
 
7
TARGET = library
 
8
 
 
9
MA_MANIFEST_FILE = $(filter %.addin.xml, $(RESOURCES_EXPANDED))
 
10
MA_ADDIN_NAME = $(shell egrep -o -m 1 'id=".*"' $(MA_MANIFEST_FILE) \
 
11
                  | sed 's/id="//g' | sed 's/"//g')
 
12
MA_ADDIN_VER = $(shell egrep -o -m 1 'version=".*"' $(MA_MANIFEST_FILE) \
 
13
                  | sed 's/version="//g' | sed 's/"//g')
 
14
MA_ADDIN_NAMESPACE = Docky
 
15
MA_PACKFILE = $(MA_ADDIN_NAMESPACE).$(MA_ADDIN_NAME)_$(MA_ADDIN_VER).mpack
 
16
 
 
17
# Install dockpets as data; there's no need for them to be excutable
 
18
plugindir = ${libdir}/docky/plugins
 
19
plugin_DATA = $(OUTPUT_FILES)
 
20
 
 
21
# All docklets should be translatable; every plugin will need to link to
 
22
# Mono.Addins for this.
 
23
COMPONENT_REFERENCES += $(MONO_ADDINS_LIBS)
 
24
 
 
25
all: $(OUTPUT_FILES)
 
26
 
 
27
reference-debug:
 
28
        @echo $(BUILD_REFERENCES) $(COMPONENT_REFERENCES)
 
29
        @echo $(RESOURCES_EXPANDED)
 
30
        @echo $(MA_MANIFEST_FILE)
 
31
 
 
32
$(BUILD_DIR)/$(MA_PACKFILE): $(ASSEMBLY_FILE)
 
33
        cd $(BUILD_DIR) && $(MAUTIL) pack $(ASSEMBLY_FILE)