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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
|
SUBDIRS=. docs
CANVASSRCDIR=$(top_srcdir)
CANVASCOMMONSRCDIR=$(top_srcdir)/common/hippo
LINUXSRCDIR=$(top_srcdir)/linux/hippo
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = hippo-canvas-1.pc
# note that target-specific CPPFLAGS will REPLACE
# not augment these default flags by default,
# so we manually put AM_CPPFLAGS in the target flags
AM_CPPFLAGS=-DHIPPO_COMPILATION -DHIPPO_OS_LINUX -I$(top_builddir)/config -I$(CANVASSRCDIR) -I$(CANVASCOMMONSRCDIR) -I$(LINUXSRCDIR)
# the "config" dir seems like a convenient place that's already
# in everyone's include path ... I dunno
BUILT_SRC_DIR=$(top_builddir)/config/hippo-canvas
# Generated marshallers and enums go into this directory as well
MARSHAL_DIR=$(BUILT_SRC_DIR)
EXTRA_DIST = LICENSE hippo-canvas-1.pc.in docs/Makefile.am
# if srcdir!=builddir, clean out maintainer-clean files from builddir
# this allows dist to pass.
distclean-local:
if test $(srcdir) != . ; then \
rm -f $(MAINTAINERCLEANFILES) ; \
rmdir $(BUILT_SRC_DIR) ; \
fi
# These are added to using += in the included files
lib_LTLIBRARIES =
CLEANFILES=
DISTCLEANFILES =
MAINTAINERCLEANFILES =
BUILT_SOURCES =
lib_LTLIBRARIES += libhippocanvas-1.la
libhippocanvas_1_la_CPPFLAGS = \
$(AM_CPPFLAGS) \
-I $(MARSHAL_DIR) \
-I $(top_srcdir)/common \
-I $(top_srcdir)/linux \
-I common/hippo \
$(LIBHIPPOCANVAS_CFLAGS)
libhippocanvas_1_la_LIBADD = \
$(LIBHIPPOCANVAS_LIBS)
include Makefile-canvas-sources.am
libhippocanvasincludedir = $(includedir)/hippo-canvas-1/hippo
libhippocanvasinclude_HEADERS=$(COMMON_CANVAS_HEADERFILES) $(LINUX_CANVAS_HEADERFILES)
libhippocanvas_1_la_SOURCES=$(COMMON_CANVAS_SOURCEFILES) $(LINUX_CANVAS_SOURCEFILES)
nodist_libhippocanvas_1_la_SOURCES=$(CANVAS_BUILT_SOURCEFILES)
if HAVE_PYTHON
include Makefile-python.am
endif
if HAVE_INTROSPECTION
include Makefile-introspection.am
endif
DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
.PHONY: tag
tag:
@(svn status | grep '^[MA]' > /dev/null && echo "Uncommitted changes, can't tag") || \
(V=`echo $(VERSION) | sed s/\\\\./_/g` && \
URL=`svn info --xml | grep '<url>' | sed 's@</\?url>@@g'` && \
PACKAGE=`echo $$URL | perl -pe 's@.*/(.*)/.*@$$1@; tr/a-z-/A-Z_/;'` && \
TAGURL=`echo $$URL | sed "s@trunk@tags/$${PACKAGE}_$$V@"` && \
echo Tagging as $$TAGURL && \
svn cp -m "Tag as $${PACKAGE}_$$V" $$URL $$TAGURL)
|