Set proper bits on files when INSTALLing
svn: r906
This commit is contained in:
parent
8997aeded4
commit
ab175ce080
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user