File: Makefile.am

package info (click to toggle)
libmateweather 1.8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 56,212 kB
  • sloc: ansic: 5,224; makefile: 741; sh: 78; perl: 66; python: 12
file content (37 lines) | stat: -rw-r--r-- 1,101 bytes parent folder | download | duplicates (4)
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
if BUILD_PYTHON
AM_CPPFLAGS =			\
	-I$(top_srcdir)		\
	$(PYTHON_INCLUDES)	\
	$(PYGOBJECT_CFLAGS)	\
	$(GTK_CFLAGS)

pyunstabledir = $(pyexecdir)/mateweather/I_KNOW_THIS_IS_UNSTABLE
pyunstable_LTLIBRARIES = mateweather.la
mateweather_la_LDFLAGS = -module -avoid-version -export-symbols-regex initmateweather
mateweather_la_LIBADD = ../libmateweather/libmateweather.la
mateweather_la_SOURCES = mateweathermodule.c
nodist_mateweather_la_SOURCES = mateweather.c
mateweather.c: mateweather.defs mateweather.override

.defs.c:
	$(AM_V_GEN)(cd $(srcdir)\
	 && pygobject-codegen-2.0 \
		--register $(PYGTK_DEFS) \
		--override $*.override \
		--prefix py$* $*.defs) > gen-$*.c \
	&& cp gen-$*.c $*.c \
	&& rm -f gen-$*.c

install-exec-hook:
	$(MKDIR_P) "$(DESTDIR)$(pyunstabledir)"
	$(INSTALL_DATA) $(srcdir)/bad__init__.py "$(DESTDIR)$(pyexecdir)/mateweather/__init__.py"
	touch $(DESTDIR)$(pyunstabledir)/__init__.py
	chmod a+x $(DESTDIR)$(pyunstabledir)/__init__.py

endif

EXTRA_DIST = mateweather.defs mateweather.override bad__init__.py demo.py

CLEANFILES = mateweather.c

-include $(top_srcdir)/git.mk