File: Makefile.am

package info (click to toggle)
eterm 0.9.6-7.3
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 4,780 kB
  • sloc: ansic: 28,138; sh: 8,849; asm: 365; makefile: 144; perl: 74
file content (33 lines) | stat: -rw-r--r-- 1,468 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $Id: Makefile.am 13745 2005-03-15 21:48:14Z mej $

THEMES = Eterm auto Escreen trans

EXTRA_DIST = Eterm/theme.cfg.in Escreen/theme.cfg.in trans/theme.cfg.in auto/theme.cfg.in \
             Eterm/menus.cfg Escreen/menus.cfg trans/menus.cfg auto/menus.cfg

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 ; \
	    rm -f $(DESTDIR)$(pkgdatadir)/themes/$$i/theme.cfg.in.orig ; \
	  else \
	    echo "ALERT!  Not overwriting $$i theme in $(DESTDIR)$(pkgdatadir)/themes.  You will need to update this theme manually." ; \
	  fi ; \
	done

uninstall-hook:
	rm -rf $(DESTDIR)$(pkgdatadir)/themes
MAINTAINERCLEANFILES=Makefile.in