2002-10-20 19:55:16 +05:30
|
|
|
# This is the src level Makefile for Gramps
|
|
|
|
SUBDIRS = docgen filters plugins data po
|
|
|
|
|
|
|
|
# For intl. support, how do we compile?
|
2002-10-29 09:25:19 +05:30
|
|
|
GVFSINC = @GPREF@
|
|
|
|
CFLAGS = -fPIC -shared -O @GNOMEINC@ @CFLAGS@ @CPPFLAGS@ -I@includedir@
|
|
|
|
LDFLAGS = @GNOMELIB@ @LDFLAGS@ -L@libdir@ @LIBS@
|
2002-10-20 19:55:16 +05:30
|
|
|
CLEANFILES = ${INTLLIBS}
|
|
|
|
MOSTLYCLEANFILES =
|
|
|
|
|
|
|
|
# What are the PYTHON scripts for this package that need to be handled?
|
|
|
|
#
|
|
|
|
# We only want optimized byte-compiled (.pyo) versions, no .pyc
|
|
|
|
# In principle, this is handled by PYCFILES and PYOFILES, but
|
|
|
|
# they don't seem to work so we edited the py-compile script instead
|
|
|
|
pkgpython_PYTHON = ${wildcard *.py}
|
|
|
|
|
|
|
|
# Use GNU make's ':=' syntax for nice wildcard use.
|
|
|
|
# If not using GNU make, then list all files individually
|
|
|
|
GLADEFILES := ${wildcard *.glade}
|
|
|
|
GRAPHICS := ${wildcard *.xpm} ${wildcard *.png} ${wildcard *.jpg}
|
|
|
|
|
|
|
|
# Other stuff that we need to install
|
|
|
|
pkgdata_DATA = ${INTLLIBS} ${GLADEFILES} ${GRAPHICS} gramps.desktop
|
|
|
|
|
2002-11-03 12:05:06 +05:30
|
|
|
EXTRA_DIST = grampslib.i
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
|
|
|
2002-10-25 10:22:51 +05:30
|
|
|
all: ${INTLLIBS} grampslib.so
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
|
|
DIST_SOURCES = intl.c
|
|
|
|
dist_pkgdata_DATA = ${pkgdata_DATA}
|
|
|
|
|
|
|
|
# These can prbably be done in a better or more elegant/generic way
|
|
|
|
# eventually (libtool?), but this works.
|
|
|
|
intl22.so: intl.c
|
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) @P22_INCLUDES@ -DVER22 -o $@ intl.c
|
|
|
|
|
2002-10-25 10:22:51 +05:30
|
|
|
grampslib.so: grampslib.i
|
2002-11-03 12:05:06 +05:30
|
|
|
$(SWIG) -python grampslib.i
|
2002-10-29 09:25:19 +05:30
|
|
|
$(CC) $(CFLAGS) @P22_INCLUDES@ -o $@ grampslib_wrap.c $(LDFLAGS)
|
2002-10-25 10:22:51 +05:30
|
|
|
|
2002-10-20 19:55:16 +05:30
|
|
|
# In principle the following rule slightly violates the automake/autoconf
|
|
|
|
# spirit of keeping each subdirectory as a separate entity unto itself.
|
|
|
|
# But, since the template depends on everything from here, we allow this
|
|
|
|
# one exception.
|
|
|
|
trans: po/template.po
|
|
|
|
./build_po
|
|
|
|
|
|
|
|
install-data-local:
|
|
|
|
${INSTALL} -d ${prefix}/share/pixmaps
|
|
|
|
${INSTALL_DATA} gramps.png ${prefix}/share/pixmaps
|
|
|
|
${INSTALL} -d ${prefix}/share/gnome/apps/Applications
|
|
|
|
${INSTALL_DATA} gramps.desktop ${prefix}/share/gnome/apps/Applications
|
|
|
|
|
|
|
|
uninstall-local:
|
|
|
|
-rm ${prefix}/share/pixmaps/gramps.png
|
|
|
|
-rm ${prefix}/share/gnome/apps/Applications/gramps.desktop
|