gramps/src/Makefile.am

165 lines
3.4 KiB
Makefile
Raw Normal View History

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?
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 =
INTLLIBS= intl22.so
2002-10-20 19:55:16 +05:30
# 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\
intl.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\
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\
WriteXML.py
2002-10-20 19:55:16 +05:30
# Use GNU make's ':=' syntax for nice wildcard use.
# If not using GNU make, then list all files individually
2003-03-07 07:51:18 +05:30
GLADEFILES = \
config.glade\
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\
styles.glade
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\
splash.jpg
2002-10-20 19:55:16 +05:30
# Other stuff that we need to install
2002-11-08 10:55:53 +05:30
pkgdata_DATA = ${INTLLIBS} ${GLADEFILES} ${GRAPHICS} gramps.desktop grampslib.so
2002-10-20 19:55:16 +05:30
EXTRA_DIST = grampslib.i
2002-10-20 19:55:16 +05:30
all: ${INTLLIBS} grampslib.so
2002-10-20 19:55:16 +05:30
2002-12-12 10:06:35 +05:30
DIST_SOURCES = intl.c grampslib_wrap.c
2002-10-20 19:55:16 +05:30
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
grampslib.so: grampslib_wrap.c
$(CC) $(CFLAGS) @P22_INCLUDES@ -o $@ grampslib_wrap.c $(LDFLAGS)
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