2002-10-20 19:55:16 +05:30
|
|
|
# This is the src level Makefile for Gramps
|
2003-01-09 10:11:08 +05:30
|
|
|
SUBDIRS = docgen filters plugins data po calendars
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
|
|
# For intl. support, how do we compile?
|
2002-10-29 09:25:19 +05:30
|
|
|
CFLAGS = -fPIC -shared -O @GNOMEINC@ @CFLAGS@ @CPPFLAGS@ -I@includedir@
|
|
|
|
LDFLAGS = @GNOMELIB@ @LDFLAGS@ -L@libdir@ @LIBS@
|
2003-08-17 07:44:33 +05:30
|
|
|
CLEANFILES = grampslib.so
|
2002-10-20 19:55:16 +05:30
|
|
|
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
|
2003-03-07 07:51:18 +05:30
|
|
|
|
|
|
|
pkgpython_PYTHON = \
|
|
|
|
AddMedia.py\
|
|
|
|
AddrEdit.py\
|
|
|
|
AddSpouse.py\
|
|
|
|
ansel_utf8.py\
|
|
|
|
AttrEdit.py\
|
|
|
|
AutoComp.py\
|
|
|
|
Bookmarks.py\
|
|
|
|
Calendar.py\
|
|
|
|
ChooseParents.py\
|
|
|
|
const.py\
|
|
|
|
DateEdit.py\
|
|
|
|
Date.py\
|
|
|
|
DbPrompter.py\
|
|
|
|
DisplayTrace.py\
|
|
|
|
DrawDoc.py\
|
|
|
|
EditPerson.py\
|
|
|
|
EditPlace.py\
|
|
|
|
EditSource.py\
|
|
|
|
Errors.py\
|
|
|
|
EventEdit.py\
|
|
|
|
FamilyView.py\
|
|
|
|
Filter.py\
|
|
|
|
Find.py\
|
|
|
|
FontScale.py\
|
|
|
|
FrenchRepublic.py\
|
|
|
|
GedcomInfo.py\
|
|
|
|
GenericFilter.py\
|
|
|
|
GrampsCfg.py\
|
|
|
|
gramps_main.py\
|
|
|
|
GrampsParser.py\
|
|
|
|
gramps.py\
|
|
|
|
GrampsXML.py\
|
|
|
|
GrampsZODB.py\
|
|
|
|
GraphLayout.py\
|
|
|
|
Gregorian.py\
|
|
|
|
Hebrew.py\
|
|
|
|
ImageSelect.py\
|
|
|
|
ImgManip.py\
|
|
|
|
Julian.py\
|
|
|
|
latin_ansel.py\
|
|
|
|
latin_utf8.py\
|
|
|
|
ListModel.py\
|
|
|
|
LocEdit.py\
|
|
|
|
Marriage.py\
|
|
|
|
MediaView.py\
|
|
|
|
MergeData.py\
|
|
|
|
NameEdit.py\
|
|
|
|
NoteEdit.py\
|
|
|
|
PaperMenu.py\
|
|
|
|
PedView.py\
|
|
|
|
PlaceView.py\
|
|
|
|
Plugins.py\
|
|
|
|
QuestionDialog.py\
|
|
|
|
QuickAdd.py\
|
|
|
|
ReadXML.py\
|
2003-03-23 01:56:44 +05:30
|
|
|
Relationship.py\
|
2003-03-07 07:51:18 +05:30
|
|
|
RelImage.py\
|
|
|
|
RelLib.py\
|
|
|
|
Report.py\
|
|
|
|
SelectChild.py\
|
|
|
|
sort.py\
|
|
|
|
soundex.py\
|
|
|
|
Sources.py\
|
|
|
|
SourceView.py\
|
|
|
|
SpreadSheetDoc.py\
|
|
|
|
StartupDialog.py\
|
|
|
|
StyleEditor.py\
|
|
|
|
SubstKeywords.py\
|
|
|
|
TarFile.py\
|
|
|
|
TextDoc.py\
|
|
|
|
UrlEdit.py\
|
|
|
|
Utils.py\
|
|
|
|
VersionControl.py\
|
|
|
|
Witness.py\
|
2003-07-08 05:24:40 +05:30
|
|
|
WriteXML.py\
|
|
|
|
SelectPerson.py
|
2002-10-20 19:55:16 +05:30
|
|
|
|
2003-05-21 06:00:02 +05:30
|
|
|
# Could use GNU make's ':=' syntax for nice wildcard use.
|
2002-10-20 19:55:16 +05:30
|
|
|
# If not using GNU make, then list all files individually
|
2003-05-21 06:00:02 +05:30
|
|
|
# The latter is more portable and POSIX-friendly :)
|
2003-03-07 07:51:18 +05:30
|
|
|
GLADEFILES = \
|
|
|
|
dialog.glade\
|
|
|
|
edit_person.glade\
|
|
|
|
errdialogs.glade\
|
|
|
|
gramps.glade\
|
|
|
|
imagesel.glade\
|
|
|
|
marriage.glade\
|
|
|
|
mergedata.glade\
|
|
|
|
places.glade\
|
|
|
|
plugins.glade\
|
|
|
|
preferences.glade\
|
|
|
|
revision.glade\
|
|
|
|
rule.glade\
|
|
|
|
srcsel.glade\
|
2003-07-08 05:24:40 +05:30
|
|
|
styles.glade\
|
|
|
|
choose.glade
|
2003-03-07 07:51:18 +05:30
|
|
|
|
2003-01-31 10:28:24 +05:30
|
|
|
GRAPHICS = \
|
|
|
|
bad.png\
|
|
|
|
caution.png\
|
|
|
|
edit.png\
|
|
|
|
family48.png\
|
|
|
|
good.png\
|
|
|
|
gramps.png\
|
|
|
|
gramps.xpm\
|
|
|
|
logo.png\
|
|
|
|
media.png\
|
|
|
|
pedigree.xpm\
|
|
|
|
people48.png\
|
|
|
|
people.xpm\
|
|
|
|
place.png\
|
|
|
|
sources.png\
|
2003-08-16 08:53:48 +05:30
|
|
|
splash.jpg\
|
|
|
|
tools.png
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
|
|
# Other stuff that we need to install
|
2003-05-21 06:00:02 +05:30
|
|
|
dist_pkgdata_DATA = $(GLADEFILES) $(GRAPHICS) gramps.desktop
|
2003-08-17 07:44:33 +05:30
|
|
|
nodist_pkgdata_DATA = grampslib.so
|
2002-10-20 19:55:16 +05:30
|
|
|
|
2003-08-17 07:44:33 +05:30
|
|
|
EXTRA_DIST = grampslib.i grampslib_wrap.c
|
2002-10-20 19:55:16 +05:30
|
|
|
|
2003-08-17 07:44:33 +05:30
|
|
|
all-local: grampslib.so
|
2002-10-20 19:55:16 +05:30
|
|
|
|
2003-05-21 06:00:02 +05:30
|
|
|
# These can probably be done in a better or more elegant/generic way
|
2002-10-20 19:55:16 +05:30
|
|
|
# eventually (libtool?), but this works.
|
|
|
|
|
2003-05-21 06:00:02 +05:30
|
|
|
grampslib.so: $(srcdir)/grampslib_wrap.c
|
2003-08-14 21:21:34 +05:30
|
|
|
$(CC) $(CFLAGS) $(PYTHON_CPPFLAGS) -o $@ $(srcdir)/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.
|
2003-05-21 06:00:02 +05:30
|
|
|
# Build po/template.po.
|
|
|
|
.PHONY: trans
|
|
|
|
trans:
|
2002-10-20 19:55:16 +05:30
|
|
|
./build_po
|
|
|
|
|
2003-05-21 06:00:02 +05:30
|
|
|
pycheck:
|
|
|
|
for d in $(SUBDIRS) ; do \
|
|
|
|
(cd $$d; make pycheck); \
|
|
|
|
done;
|
2003-03-08 11:29:20 +05:30
|
|
|
pychecker $(pkgpython_PYTHON)
|
2003-08-14 21:21:34 +05:30
|
|
|
|
2002-10-20 19:55:16 +05:30
|
|
|
install-data-local:
|
2003-05-21 06:00:02 +05:30
|
|
|
$(INSTALL) -d $(DESTDIR)$(prefix)/share/pixmaps
|
|
|
|
$(INSTALL_DATA) $(srcdir)/gramps.png $(DESTDIR)$(prefix)/share/pixmaps
|
|
|
|
$(INSTALL) -d $(DESTDIR)$(prefix)/share/gnome/apps/Applications
|
|
|
|
$(INSTALL_DATA) $(srcdir)/gramps.desktop $(DESTDIR)$(prefix)/share/gnome/apps/Applications
|
2002-10-20 19:55:16 +05:30
|
|
|
|
|
|
|
uninstall-local:
|
2003-05-21 06:00:02 +05:30
|
|
|
-rm $(DESTDIR)$(prefix)/share/pixmaps/gramps.png
|
|
|
|
-rm $(DESTDIR)$(prefix)/share/gnome/apps/Applications/gramps.desktop
|