| 1 |
SUBDIRS = doc src
|
| 2 |
|
| 3 |
imagesdir = $(DESTDIR)/$(sysconfdir)/splashy/themes
|
| 4 |
schemasdir = $(DESTDIR)/$(datadir)/splashy/schemas
|
| 5 |
scriptsdir = $(sysconfdir)/init.d
|
| 6 |
|
| 7 |
scripts_DATA = scripts/splashy-init
|
| 8 |
|
| 9 |
# we point to /usr/share/splashy ...
|
| 10 |
install-data-hook:
|
| 11 |
if test '!' -d $(DESTDIR)/$(sysconfdir)/splashy; then \
|
| 12 |
$(mkinstalldirs) $(DESTDIR)/$(sysconfdir)/splashy; \
|
| 13 |
chmod 755 $(DESTDIR)/$(sysconfdir)/splashy; \
|
| 14 |
fi
|
| 15 |
if test '!' -d $(imagesdir); then \
|
| 16 |
$(mkinstalldirs) $(imagesdir); \
|
| 17 |
chmod 755 $(imagesdir); \
|
| 18 |
fi
|
| 19 |
if test '!' -d $(schemasdir)/splashy/schemas; then \
|
| 20 |
$(mkinstalldirs) $(schemasdir)/splashy/schemas; \
|
| 21 |
chmod 755 $(schemasdir)/splashy/schemas; \
|
| 22 |
fi
|
| 23 |
cp -r themes/default/ $(imagesdir)
|
| 24 |
cp -r schemas/ $(schemasdir)/splashy/schemas/
|
| 25 |
if test '!' -d $(DESTDIR)/$(sysconfdir)/default; then \
|
| 26 |
$(mkinstalldirs) $(DESTDIR)/$(sysconfdir)/default; \
|
| 27 |
chmod 755 $(DESTDIR)/$(sysconfdir)/default; \
|
| 28 |
fi
|
| 29 |
cp scripts/default/splashy $(DESTDIR)/$(sysconfdir)/default/splashy
|
| 30 |
|
| 31 |
uninstall-hook:
|
| 32 |
rm -fr $(imagesdir)/default \
|
| 33 |
$(datadir)/splashy/schemas \
|
| 34 |
$(DESTDIR)/$(sysconfdir)/default/splashy
|
| 35 |
|
| 36 |
EXTRA_DIST = autogen.sh $(images_DATA) $(scripts_DATA) \
|
| 37 |
splashy.spec \
|
| 38 |
initramfs/hooks/splashy \
|
| 39 |
initramfs/scripts/init-top/splashy \
|
| 40 |
themes/default/background.jpg \
|
| 41 |
themes/default/error.jpg \
|
| 42 |
themes/default/theme.xml \
|
| 43 |
themes/default/FreeSans.ttf \
|
| 44 |
schemas/theme.xsd \
|
| 45 |
schemas/theme.xsl \
|
| 46 |
scripts/default/splashy \
|
| 47 |
HACKING
|