File: Makefile.am

package info (click to toggle)
liblunar 2.0.1-2.2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 2,076 kB
  • ctags: 480
  • sloc: sh: 10,194; ansic: 4,603; xml: 584; makefile: 173; python: 16
file content (48 lines) | stat: -rw-r--r-- 1,594 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
47
48
## Process this file with automake to produce Makefile.in

PYTHON_MODULES = lunar.la

BUILT_SOURCES = calendar.c

pythonsiteexecdir = $(pyexecdir)/gtk-2.0
pythonsiteexec_LTLIBRARIES = $(PYTHON_MODULES)

AM_LDFLAGS = $(PYTHON_LDFLAGS)

lunar_la_CFLAGS = $(LIBLUNAR_CFLAGS) $(PYTHON_INCLUDES) $(PYGTK_CFLAGS)
lunar_la_SOURCES = lunarmodule.c
lunar_la_LIBADD = $(top_builddir)/lunar/liblunar-1.la $(PYTHON_LIBS) $(LIBS) $(PYGTK_LIBS) $(LIBLUNAR_LIBS)
lunar_la_LDFLAGS = -module -avoid-version -export-symbols-regex initlunar
nodist_lunar_la_SOURCES = $(BUILT_SOURCES)

$(top_builddir)/lunar/lunar-enum-types.h:
	cd $(top_builddir)/lunar && $(MAKE) lunar-enum-types.h

calendar.c: calendar.defs calendar.override  $(top_builddir)/lunar/lunar-enum-types.h
	( cd $(srcdir) && $(PYGTK_CODEGEN) \
		--register $(PYGTK_DEFSDIR)/pango-types.defs \
		--register $(PYGTK_DEFSDIR)/gdk-types.defs \
		--register $(PYGTK_DEFSDIR)/gtk-types.defs \
		--override $*.override \
		--prefix py$* $(<F) ) > $@ 

BINDING_CALENDAR_HEADERS_SRCDIR_IN = \
       lunar/lunar-calendar.h

BINDING_HEADERS_BUILDDIR_IN = lunar/lunar-main.h

BINDING_CALENDAR_HEADERS_SRCDIR        := $(addprefix $(top_srcdir)/,$(BINDING_CALENDAR_HEADERS_SRCDIR_IN))
BINDING_HEADERS_BUILDDIR	:= $(addprefix $(top_builddir)/,$(BINDING_HEADERS_BUILDDIR_IN))

regenerate-python-binding:
	$(PYGTK_H2DEF) $(sort $(BINDING_CALENDAR_HEADERS_SRCDIR) $(BINDING_HEADERS_BUILDDIR)) > calendar.defs.new

EXTRA_DIST = \
	calendar.override	\
	calendar.defs		\
	lunar-demo.py

CLEANFILES = $(BUILT_SOURCES)

dist-hook:
	cd $(distdir); rm -f $(BUILT_SOURCES)