1 |
## ./themes/Makefile.am of graveman |
## ./themes/Makefile.am of graveman |
2 |
|
|
3 |
themessubdir = themes |
themessubdir = themes |
4 |
themes = default |
themes = default pan |
5 |
|
|
6 |
all: |
all: |
7 |
@echo "Themes will be installed with 'make install'" |
@echo "Themes will be installed with 'make install' in '${DESTDIR}${pkgdatadir}/${themessubdir}'" |
8 |
@true |
@true |
9 |
|
|
10 |
install: |
install: |
11 |
$(mkinstalldirs) ${DESTDIR}${pkgdatadir}/themes |
@echo "Installing themes in '${DESTDIR}${pkgdatadir}/${themessubdir}'" |
12 |
for theme in ${themes}; do \ |
@$(mkinstalldirs) ${DESTDIR}${pkgdatadir}/${themessubdir} |
13 |
|
@for theme in ${themes}; do \ |
14 |
if test -d $$theme && test -f $$theme/graveman; then \ |
if test -d $$theme && test -f $$theme/graveman; then \ |
15 |
echo "Installing '$$theme' theme ..." ; \ |
echo "Installing '$$theme' theme ..." ; \ |
16 |
$(mkinstalldirs) ${DESTDIR}${pkgdatadir}/themes/$$theme ; \ |
$(mkinstalldirs) ${DESTDIR}${pkgdatadir}/${themessubdir}/$$theme ; \ |
17 |
for files in $$theme/*; do \ |
for files in $$theme/*; do \ |
18 |
${INSTALL_DATA} $$files ${DESTDIR}${pkgdatadir}/${themessubdir}/$$theme ; \ |
test -f $$files && ${INSTALL_DATA} $$files ${DESTDIR}${pkgdatadir}/${themessubdir}/$$files ; \ |
19 |
done \ |
done \ |
20 |
fi \ |
fi \ |
21 |
done |
done |