File: makefile.am

package info (click to toggle)
gsf-sharp 0.8-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,548 kB
  • ctags: 19
  • sloc: sh: 8,694; makefile: 66; ansic: 33
file content (52 lines) | stat: -rw-r--r-- 1,439 bytes parent folder | download | duplicates (2)
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
47
48
49
50
51
52
LIBRARY_NAME=	gsf-sharp
LIBRARY=	$(LIBRARY_NAME).dll
APIS=		gsf-api.xml

ASSEMBLIES=	/pkg:gtk-sharp-2.0

CUSTOM_FILES = Global.custom Input.custom Output.custom DocProp.custom

EXTRA_DIST = $(sources) Gsf.metadata gsf-api.raw AssemblyInfo.cs.in $(CUSTOM_FILES)

DISTCLEANFILES = AssemblyInfo.cs

noinst_DATA = gsf-sharp.dll

apidir = $(datadir)/gapi-2.0
api_DATA = gsf-api.xml

all: $(LIBRARY)

gsf-api.xml:
	cp $(srcdir)/gsf-api.raw gsf-api.xml
	chmod u+w gsf-api.xml
	$(GAPI_FIXUP) --api=gsf-api.xml --metadata=$(srcdir)/Gsf.metadata

generated-stamp: $(APIS) $(sources) Gsf.metadata $(CUSTOM_FILES)
	$(GAPI_CODEGEN) --generate $(APIS) \
	--outdir=generated --customdir=. --assembly-name=gsf-sharp && touch generated-stamp

sources = \
AssemblyInfo.cs

build_sources = $(addprefix $(srcdir)/, $(sources))

gtk-sharp.snk: $(top_srcdir)/gtk-sharp.snk
	cp $(top_srcdir)/gtk-sharp.snk .

$(LIBRARY): generated-stamp $(build_sources) gtk-sharp.snk
	$(CSC) --unsafe --target library $(ASSEMBLIES) \
	generated/*.cs $(build_sources) -o $(LIBRARY)

CLEANFILES = $(LIBRARY) generated/*.cs generated-stamp gsf-api.xml gtk-sharp.snk

distclean-local:
	rm -f makefile

install-data-local: $(LIBRARY)
	echo "$(GACUTIL) /i $(LIBRARY) /f $(GACUTIL_FLAGS)";  \
	$(GACUTIL) /i $(LIBRARY) /f $(GACUTIL_FLAGS) || exit 1;

uninstall-local:
	echo "$(GACUTIL) /u $(LIBRARY_NAME) $(GACUTIL_FLAGS)"; \
	$(GACUTIL) /u $(LIBRARY_NAME) $(GACUTIL_FLAGS) || exit 1;