Set proper bits on files when INSTALLing

svn: r906
This commit is contained in:
Donald A. Peterson 2002-04-09 15:52:24 +00:00
parent 20a3b7e00b
commit 27fc1e3302
3 changed files with 16 additions and 6 deletions

View File

@ -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:

View File

@ -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

View File

@ -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