File: Makefile.am

package info (click to toggle)
f-spot 0.8.2-5
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 26,376 kB
  • sloc: cs: 138,718; sh: 16,964; makefile: 2,321; xml: 783; ansic: 721
file content (44 lines) | stat: -rw-r--r-- 1,122 bytes parent folder | download
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
include $(top_srcdir)/Makefile.include

CUSTOMS =			\
	$(srcdir)/GKeyFile.custom

ASSEMBLIES = 			\
	-pkg:glib-sharp-2.0

all: gkeyfile-sharp.dll

gkeyfile-api.raw: gkeyfile-sharp-sources.xml
	$(GAPI2PARSER) gkeyfile-sharp-sources.xml

gkeyfile-api.xml: gkeyfile-api.raw GKeyFile.metadata
	@echo -e "\n*** Massaging the raw api into $@"
	cp gkeyfile-api.raw gkeyfile-api.xml
	chmod +w gkeyfile-api.xml
	$(GAPI2FIXUP) --api=gkeyfile-api.xml --metadata=GKeyFile.metadata

generated/GKeyFile.cs: gkeyfile-api.xml $(CUSTOMS) $(GAPI2CODEGEN)
	@echo -e "\n*** Generating C# code"
	$(GAPI2CODEGEN) --outdir=generated --customdir=$(srcdir) --generate $(srcdir)/gkeyfile-api.xml

gkeyfile-sharp.dll: generated/GKeyFile.cs $(CUSTOMS)
	$(CSC_LIB) -unsafe -out:$@ $(PKGS) $(ASSEMBLIES) $(builddir)/generated/*.cs

assemblydir = $(pkglibdir)
assembly_DATA =			 	\
	gkeyfile-sharp.dll

CLEANFILES =				\
	gkeyfile-sharp.dll		\
	gkeyfile-sharp.dll.mdb	\
	gkeyfile-api.xml

DISTCLEANFILES =			\
	generated/*.cs

EXTRA_DIST =				\
	$(CUSTOMS)			\
	gkeyfile-api.raw		\
	GKeyFile.metadata		\
	gkeyfile-api.xml		\
	gkeyfile-sharp-sources.xml