diff --git a/src/Makefile.in b/src/Makefile.in index 5a75a9aa2..ad2569f44 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -17,6 +17,13 @@ PYSRCS := ${wildcard *.py} PYOBJS = ${PYSRCS:.py=.pyo} +# List only those modules that need the executable bit set +EXE1 = AddMedia.py EditSource.py gramps.py gramps_main.py + +# Add their byte-compiled counterparts to the list... +EXE2 = ${EXE1:.py=.pyo} +EXES = ${EXE1} ${EXE2} + all: ${intl_libs} ${PYOBJS} intl15.so: intl.c @@ -34,15 +41,18 @@ intl22.so: intl.c install: ${INSTALL} -d ${datadir} (cd ${datadir} ;rm -f *.py *.pyo *.pyc *.glade *.xpm *.so) - ${INSTALL} *.py *.jpg *.pyo *.png *.glade *.xpm *.so ${datadir} + ${INSTALL} -m 644 *.py *.jpg *.pyo *.png *.glade *.xpm *.so ${datadir} + for i in ${EXES}; do \ + chmod 755 ${datadir}/$$i; \ + done ${INSTALL} -d ${prefix}/share/pixmaps - ${INSTALL} gramps.png ${prefix}/share/pixmaps + ${INSTALL} -m 644 gramps.png ${prefix}/share/pixmaps ${INSTALL} -d ${prefix}/share/gnome/apps/Applications - ${INSTALL} gramps.desktop ${prefix}/share/gnome/apps/Applications + ${INSTALL} -m 644 gramps.desktop ${prefix}/share/gnome/apps/Applications for i in ${LANG}; do\ ${INSTALL} -d ${prefix}/share/locale/$$i; \ ${INSTALL} -d ${prefix}/share/locale/$$i/LC_MESSAGES; \ - ${INSTALL} locale/$$i/LC_MESSAGES/gramps.mo ${prefix}/share/locale/$$i/LC_MESSAGES; \ + ${INSTALL} -m 644 locale/$$i/LC_MESSAGES/gramps.mo ${prefix}/share/locale/$$i/LC_MESSAGES; \ done uninstall: diff --git a/src/docgen/Makefile.in b/src/docgen/Makefile.in index b8222d5a1..d214c034c 100644 --- a/src/docgen/Makefile.in +++ b/src/docgen/Makefile.in @@ -19,7 +19,7 @@ all: ${PYOBJS} install: ${INSTALL} -d ${docgen} - ${INSTALL} *.py *.pyo ${docgen} + ${INSTALL} -m 644 *.py *.pyo ${docgen} uninstall: rm ${docgen}/*.py ${docgen}/*.pyo diff --git a/src/filters/Makefile.in b/src/filters/Makefile.in index 04e469fdb..a10482e51 100644 --- a/src/filters/Makefile.in +++ b/src/filters/Makefile.in @@ -19,7 +19,7 @@ all: ${PYOBJS} install: ${INSTALL} -d ${plugins} - ${INSTALL} *.py *.pyo *.glade ${plugins} + ${INSTALL} -m 644 *.py *.pyo *.glade ${plugins} uninstall: rm ${plugins}/*.py ${plugins}/*.pyo ${plugins}/*.glade