summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorEric Fischer <eric@eazel.com>2001-03-03 00:53:50 +0000
committerEric Fischer <eric@src.gnome.org>2001-03-03 00:53:50 +0000
commitc35c8dca842f95910c91069cb902bebd3da7e7c0 (patch)
treed09467044ed71a10c79d8d3b215b09b3a953d1c8 /Makefile.am
parentc5e1fa3927ff0d2d3e69f60ecb02484ff040ff8d (diff)
downloadnautilus-c35c8dca842f95910c91069cb902bebd3da7e7c0.tar.gz
reviewed by: Robin * Slomkowski <rslomkow@eazel.com>
2001-03-02 Eric Fischer <eric@eazel.com> reviewed by: Robin * Slomkowski <rslomkow@eazel.com> (Fixes Bug 6927) * Makefile.am: Add eazel-logos installation and distribution rules, conditional upon the presence of the eazel-logos directory. Remove eazel-logos from SUBDIRS. * configure.in: Add check for presence of eazel-logos directory. Remove eazel-logos Makefiles from list of files to be generated. * eazel-logos/Makefile.am: * eazel-logos/throbber/Makefile.am: Removed. Now takes place in main Makefile.am. * nautilus.spec.in: Only install eazel-logos files if the eazel-logos directory was present at build time.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am98
1 files changed, 97 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 3958b67a9..48290bb94 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -12,7 +12,6 @@ endif
SUBDIRS = \
data \
icons \
- eazel-logos \
intl \
cut-n-paste-code \
librsvg \
@@ -63,9 +62,86 @@ appicon_DATA = nautilus-launch-icon.png
Applicationsdir = $(datadir)/gnome/apps/Applications
Applications_DATA = $(DESKTOP_FILES)
+##################################################################
+#
+# eazel-logos/*, if it exists
+#
+##################################################################
+
+icondir = $(datadir)/pixmaps/nautilus/eazel-logos
+
+if HAVE_EAZEL_LOGOS
+EAZEL_LOGOS_ICONS = \
+ $(top_srcdir)/eazel-logos/LICENSE \
+ $(top_srcdir)/eazel-logos/About_Image.png \
+ $(top_srcdir)/eazel-logos/about_background.png \
+ $(top_srcdir)/eazel-logos/default.xml \
+ $(top_srcdir)/eazel-logos/druid_header.png \
+ $(top_srcdir)/eazel-logos/eazel-logo-right-side-logo.png \
+ $(NULL)
+endif
+
+##################################################################
+#
+# eazel-logos/throbber/*, if it exists
+#
+##################################################################
+
+throbberdir = $(datadir)/pixmaps/nautilus/eazel-logos/throbber
+
+if HAVE_EAZEL_LOGOS
+EAZEL_LOGOS_THROBBER = \
+ $(top_srcdir)/eazel-logos/throbber/001.png \
+ $(top_srcdir)/eazel-logos/throbber/002.png \
+ $(top_srcdir)/eazel-logos/throbber/003.png \
+ $(top_srcdir)/eazel-logos/throbber/004.png \
+ $(top_srcdir)/eazel-logos/throbber/005.png \
+ $(top_srcdir)/eazel-logos/throbber/006.png \
+ $(top_srcdir)/eazel-logos/throbber/007.png \
+ $(top_srcdir)/eazel-logos/throbber/008.png \
+ $(top_srcdir)/eazel-logos/throbber/009.png \
+ $(top_srcdir)/eazel-logos/throbber/010.png \
+ $(top_srcdir)/eazel-logos/throbber/011.png \
+ $(top_srcdir)/eazel-logos/throbber/012.png \
+ $(top_srcdir)/eazel-logos/throbber/013.png \
+ $(top_srcdir)/eazel-logos/throbber/014.png \
+ $(top_srcdir)/eazel-logos/throbber/015.png \
+ $(top_srcdir)/eazel-logos/throbber/rest.png \
+ $(NULL)
+endif
+
+##################################################################
+#
+# dist-hook
+#
+##################################################################
+
dist-hook: nautilus.spec
cp nautilus.spec $(distdir)
+# This is ridiculous, but automake apparently won't allow conditionals
+# in EXTRA_DIST.
+
+ mkdir -p $(distdir)/eazel-logos
+ list='$(EAZEL_LOGOS_ICONS)'; \
+ for i in $$list; \
+ do \
+ cp $$i $(distdir)/eazel-logos; \
+ done
+
+ mkdir -p $(distdir)/eazel-logos/throbber
+ list='$(EAZEL_LOGOS_THROBBER)'; \
+ for i in $$list; \
+ do \
+ cp $$i $(distdir)/eazel-logos/throbber; \
+ done
+
+##################################################################
+#
+# install-data-hook
+#
+##################################################################
+
install-data-hook: nautilus-clean.sh
$(mkinstalldirs) $(DESTDIR)/$(prefix)/bin
@list='nautilus-clean.sh'; for p in $$list; do\
@@ -74,3 +150,23 @@ install-data-hook: nautilus-clean.sh
$(INSTALL_PROGRAM) $(srcdir)/$$p $(DESTDIR)/$(prefix)/bin/$$p; \
else :; fi; \
done
+
+# This is slightly less ridiculous. I'm doing it this way instead of with
+# an automake DATA rule because it's easier to deal with the relative paths
+# like this.
+
+ $(mkinstalldirs) $(icondir)
+ @list='$(EAZEL_LOGOS_ICONS)'; \
+ for i in $$list; \
+ do \
+ echo $(INSTALL_PROGRAM) $$i $(icondir)/`basename $$i`; \
+ $(INSTALL_PROGRAM) $$i $(icondir)/`basename $$i`; \
+ done
+
+ $(mkinstalldirs) $(throbberdir)
+ @list='$(EAZEL_LOGOS_THROBBER)'; \
+ for i in $$list; \
+ do \
+ echo $(INSTALL_PROGRAM) $$i $(throbberdir)/`basename $$i`; \
+ $(INSTALL_PROGRAM) $$i $(throbberdir)/`basename $$i`; \
+ done