Set proper bits on files when INSTALLing
svn: r906
This commit is contained in:
parent
20a3b7e00b
commit
27fc1e3302
@ -17,6 +17,13 @@ PYSRCS := ${wildcard *.py}
|
|||||||
|
|
||||||
PYOBJS = ${PYSRCS:.py=.pyo}
|
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}
|
all: ${intl_libs} ${PYOBJS}
|
||||||
|
|
||||||
intl15.so: intl.c
|
intl15.so: intl.c
|
||||||
@ -34,15 +41,18 @@ intl22.so: intl.c
|
|||||||
install:
|
install:
|
||||||
${INSTALL} -d ${datadir}
|
${INSTALL} -d ${datadir}
|
||||||
(cd ${datadir} ;rm -f *.py *.pyo *.pyc *.glade *.xpm *.so)
|
(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} -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} -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\
|
for i in ${LANG}; do\
|
||||||
${INSTALL} -d ${prefix}/share/locale/$$i; \
|
${INSTALL} -d ${prefix}/share/locale/$$i; \
|
||||||
${INSTALL} -d ${prefix}/share/locale/$$i/LC_MESSAGES; \
|
${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
|
done
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
|
@ -19,7 +19,7 @@ all: ${PYOBJS}
|
|||||||
|
|
||||||
install:
|
install:
|
||||||
${INSTALL} -d ${docgen}
|
${INSTALL} -d ${docgen}
|
||||||
${INSTALL} *.py *.pyo ${docgen}
|
${INSTALL} -m 644 *.py *.pyo ${docgen}
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm ${docgen}/*.py ${docgen}/*.pyo
|
rm ${docgen}/*.py ${docgen}/*.pyo
|
||||||
|
@ -19,7 +19,7 @@ all: ${PYOBJS}
|
|||||||
|
|
||||||
install:
|
install:
|
||||||
${INSTALL} -d ${plugins}
|
${INSTALL} -d ${plugins}
|
||||||
${INSTALL} *.py *.pyo *.glade ${plugins}
|
${INSTALL} -m 644 *.py *.pyo *.glade ${plugins}
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm ${plugins}/*.py ${plugins}/*.pyo ${plugins}/*.glade
|
rm ${plugins}/*.py ${plugins}/*.pyo ${plugins}/*.glade
|
||||||
|
Loading…
Reference in New Issue
Block a user