File: Makefile.am

package info (click to toggle)
gkeyfile-sharp 0.1-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 552 kB
  • ctags: 25
  • sloc: sh: 3,393; xml: 336; makefile: 76
file content (46 lines) | stat: -rw-r--r-- 1,463 bytes parent folder | download | duplicates (3)
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
45
46
RAW_API=gkeyfile-api.raw
API=gkeyfile-api.xml
METADATA=GKeyFile.metadata

ASSEMBLY_NAME= gkeyfile-sharp
ASSEMBLY= $(ASSEMBLY_NAME).dll

CODEGEN=gapi2-codegen
FIXUP=gapi2-fixup

GENERATED_SRCDIR = generated
GENERATED_SRCS = $(GENERATED_SRCDIR)/*.cs

customs = GKeyFile.custom

CLEANFILES = gkeyfile-sharp.dll $(GENERATED_SRCS) $(API) gkeyfile-sharp.snk

DISTCLEANFILES= AssemblyInfo.cs

noinst_DATA = gkeyfile-sharp.dll

moduledir = $(libdir)/mono/gkeyfile-sharp/
module_SCRIPTS = gkeyfile-sharp.dll.config

all: gkeyfile-sharp.dll

$(API): $(RAW_API) $(METADATA)
	cp $< $@
	chmod u+w $@
	$(FIXUP) --api=$@ --metadata=$(lastword $^)

$(GENERATED_SRCS): $(API)
	 $(CODEGEN) --generate $< $(GLIB_SHARP_CFLAGS) --outdir=$(GENERATED_SRCDIR) --customdir=$(srcdir) --assembly-name=gkeyfile-sharp

gkeyfile-sharp.dll: AssemblyInfo.cs $(GENERATED_SRCS)
	$(CSC) -keyfile:$(top_srcdir)/gkeyfile-sharp.snk -out:$@ -unsafe -target:library $(GLIB_SHARP_LIBS) $^

install-data-local:
	echo "$(GACUTIL) /i $(ASSEMBLY) /f /package gkeyfile-sharp /root $(DESTDIR)$(libdir)";  \
        $(GACUTIL) /i $(ASSEMBLY) /f /package gkeyfile-sharp /root $(DESTDIR)$(libdir) || exit 1;

uninstall-local:
	echo "$(GACUTIL) /u $(ASSEMBLY_NAME) /package gkeyfile-sharp /root $(DESTDIR)$(libdir)"; \
        $(GACUTIL) /u $(ASSEMBLY_NAME) /package gkeyfile-sharp /root $(DESTDIR)$(libdir) || exit 1;

EXTRA_DIST = $(API) $(RAW_API) $(sources) $(customs) $(METADATA) gkeyfile-sharp.dll.config.in