You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.4 KiB
29 lines
1.4 KiB
# $Id$ |
|
|
|
THEMES = Eterm auto cEterm chooser emacs irc mutt trans |
|
|
|
EXTRA_DIST = Eterm/theme.cfg.in irc/theme.cfg.in chooser/theme.cfg.in emacs/theme.cfg.in mutt/theme.cfg.in trans/theme.cfg.in \ |
|
Eterm/menus.cfg irc/menus.cfg chooser/menus.cfg emacs/menus.cfg mutt/menus.cfg trans/menus.cfg \ |
|
cEterm/menus.cfg cEterm/theme.cfg.in auto/menus.cfg auto/theme.cfg.in |
|
|
|
install-data-hook: |
|
$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/themes |
|
-@for i in $(THEMES) ; do \ |
|
if test -d $(DESTDIR)$(pkgdatadir)/themes/$$i -a "@REMOVE_THEMES@" = "yes"; then \ |
|
echo "Removing $$i theme in $(DESTDIR)$(pkgdatadir)/themes as requested." ; \ |
|
$(RM) -rf $(DESTDIR)$(pkgdatadir)/themes/$$i ; \ |
|
if test -d $(DESTDIR)$(pkgdatadir)/themes/$$i ; then \ |
|
echo "ERROR: Unable to remove theme." ; \ |
|
fi ; \ |
|
fi ; \ |
|
if test ! -d $(DESTDIR)$(pkgdatadir)/themes/$$i ; then \ |
|
echo "Installing $$i theme in $(DESTDIR)$(pkgdatadir)/themes" ; \ |
|
$(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/themes/$$i ; \ |
|
$(CP) $(srcdir)/$$i/???* $(DESTDIR)$(pkgdatadir)/themes/$$i ; \ |
|
$(CHMOD) 755 $(DESTDIR)$(pkgdatadir)/themes/$$i ; \ |
|
$(CHMOD) 644 $(DESTDIR)$(pkgdatadir)/themes/$$i/???* ; \ |
|
rm -f $(DESTDIR)$(pkgdatadir)/themes/$$i/theme.cfg.in ; \ |
|
else \ |
|
echo "ALERT! Not overwriting $$i theme in $(DESTDIR)$(pkgdatadir)/themes. You will need to update this theme manually." ; \ |
|
fi ; \ |
|
done
|
|
|