* src/Makefile.am: Install grampslib under $pkglibdir/$PACKAGE

* src/Makefile.in: Likewise.
* gramps.sh.in: Add $pkglibdir/$PACKAGE to the $PYTHONPATH.


svn: r2142
This commit is contained in:
Alex Roitman 2003-09-19 03:29:33 +00:00
parent dd365fe9de
commit 557d4e7df0
4 changed files with 21 additions and 33 deletions

View File

@ -1,3 +1,8 @@
2003-09-17 Alex Roitman <shura@alex.neuro.umn.edu>
* src/Makefile.am: Install grampslib under $pkglibdir/$PACKAGE
* src/Makefile.in: Likewise.
* gramps.sh.in: Add $pkglibdir/$PACKAGE to the $PYTHONPATH.
2003-09-17 Don Allingham <dallingham@users.sourceforge.net>
* src/plugins/ReadGedcom.py: Handle Legacy's method of
handling separations and divorces

View File

@ -21,15 +21,17 @@
#
prefix=@prefix@
exec_prefix=@exec_prefix@
export GRAMPSDIR=@datadir@/@PACKAGE@
export GRAMPSLIBDIR=@libdir@/@PACKAGE@
export GRAMPSI18N=@prefix@/share/locale
if [ "$PYTHONPATH" = "" ]
then
export PYTHONPATH=$GRAMPSDIR
export PYTHONPATH=$GRAMPSDIR:$GRAMPSLIBDIR
else
export PYTHONPATH=$GRAMPSDIR:$PYTHONPATH
export PYTHONPATH=$GRAMPSDIR:$GRAMPSLIBDIR:$PYTHONPATH
fi
exec @PYTHON@ $GRAMPSDIR/gramps.py $*

View File

@ -133,7 +133,6 @@ GRAPHICS = \
# Other stuff that we need to install
dist_pkgdata_DATA = $(GLADEFILES) $(GRAPHICS) gramps.desktop
nodist_pkgdata_DATA = grampslib.so
EXTRA_DIST = grampslib.i grampslib_wrap.c
@ -165,6 +164,8 @@ install-data-local:
$(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
$(INSTALL) -d $(pkglibdir)
$(INSTALL_DATA) $(srcdir)/grampslib.so $(pkglibdir)
uninstall-local:
-rm $(DESTDIR)$(prefix)/share/pixmaps/gramps.png

View File

@ -240,7 +240,6 @@ GRAPHICS = \
# Other stuff that we need to install
dist_pkgdata_DATA = $(GLADEFILES) $(GRAPHICS) gramps.desktop
nodist_pkgdata_DATA = grampslib.so
EXTRA_DIST = grampslib.i grampslib_wrap.c
subdir = src
@ -248,7 +247,7 @@ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES = const.py
DIST_SOURCES =
py_compile = $(top_srcdir)/py-compile
DATA = $(dist_pkgdata_DATA) $(nodist_pkgdata_DATA)
DATA = $(dist_pkgdata_DATA)
RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \
@ -309,24 +308,6 @@ uninstall-dist_pkgdataDATA:
echo " rm -f $(DESTDIR)$(pkgdatadir)/$$f"; \
rm -f $(DESTDIR)$(pkgdatadir)/$$f; \
done
nodist_pkgdataDATA_INSTALL = $(INSTALL_DATA)
install-nodist_pkgdataDATA: $(nodist_pkgdata_DATA)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
@list='$(nodist_pkgdata_DATA)'; for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
f="`echo $$p | sed -e 's|^.*/||'`"; \
echo " $(nodist_pkgdataDATA_INSTALL) $$d$$p $(DESTDIR)$(pkgdatadir)/$$f"; \
$(nodist_pkgdataDATA_INSTALL) $$d$$p $(DESTDIR)$(pkgdatadir)/$$f; \
done
uninstall-nodist_pkgdataDATA:
@$(NORMAL_UNINSTALL)
@list='$(nodist_pkgdata_DATA)'; for p in $$list; do \
f="`echo $$p | sed -e 's|^.*/||'`"; \
echo " rm -f $(DESTDIR)$(pkgdatadir)/$$f"; \
rm -f $(DESTDIR)$(pkgdatadir)/$$f; \
done
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
@ -467,7 +448,7 @@ check: check-recursive
all-am: Makefile $(DATA) all-local
installdirs: installdirs-recursive
installdirs-am:
$(mkinstalldirs) $(DESTDIR)$(pkgpythondir) $(DESTDIR)$(pkgdatadir) $(DESTDIR)$(pkgdatadir)
$(mkinstalldirs) $(DESTDIR)$(pkgpythondir) $(DESTDIR)$(pkgdatadir)
install: install-recursive
install-exec: install-exec-recursive
@ -512,7 +493,7 @@ info: info-recursive
info-am:
install-data-am: install-data-local install-dist_pkgdataDATA \
install-nodist_pkgdataDATA install-pkgpythonPYTHON
install-pkgpythonPYTHON
install-exec-am:
@ -531,8 +512,7 @@ mostlyclean: mostlyclean-recursive
mostlyclean-am: mostlyclean-generic
uninstall-am: uninstall-dist_pkgdataDATA uninstall-info-am \
uninstall-local uninstall-nodist_pkgdataDATA \
uninstall-pkgpythonPYTHON
uninstall-local uninstall-pkgpythonPYTHON
uninstall-info: uninstall-info-recursive
@ -544,16 +524,14 @@ uninstall-info: uninstall-info-recursive
install-data-recursive install-dist_pkgdataDATA install-exec \
install-exec-am install-exec-recursive install-info \
install-info-am install-info-recursive install-man \
install-nodist_pkgdataDATA install-pkgpythonPYTHON \
install-recursive install-strip installcheck installcheck-am \
installdirs installdirs-am installdirs-recursive \
maintainer-clean maintainer-clean-generic \
install-pkgpythonPYTHON install-recursive install-strip \
installcheck installcheck-am installdirs installdirs-am \
installdirs-recursive maintainer-clean maintainer-clean-generic \
maintainer-clean-recursive mostlyclean mostlyclean-generic \
mostlyclean-recursive tags tags-recursive uninstall \
uninstall-am uninstall-dist_pkgdataDATA uninstall-info-am \
uninstall-info-recursive uninstall-local \
uninstall-nodist_pkgdataDATA uninstall-pkgpythonPYTHON \
uninstall-recursive
uninstall-pkgpythonPYTHON uninstall-recursive
all-local: grampslib.so
@ -584,6 +562,8 @@ install-data-local:
$(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
$(INSTALL) -d $(pkglibdir)
$(INSTALL_DATA) $(srcdir)/grampslib.so $(pkglibdir)
uninstall-local:
-rm $(DESTDIR)$(prefix)/share/pixmaps/gramps.png