
2004-11-10 James Henstridge <james@jamesh.id.au> * Makefile.am (DISTCLEANFILES): remove intltool stuff on distclean. * src/themes/Makefile.am (uninstall-local): add uninstall rule. * src/Makefile.am (libmetacity_private_la_CFLAGS): set this variable so that the files shared with metacity get compiled with different names. * configure.in: use more modern macros in some places, and make sure that $ACLOCAL_AMFLAGS is set so that rebuilds work better. * autogen.sh (conf_flags): use newer automake.
51 lines
1.7 KiB
Makefile
51 lines
1.7 KiB
Makefile
THEMES= \
|
|
Atlanta \
|
|
Bright \
|
|
Crux \
|
|
Esco \
|
|
AgingGorilla \
|
|
Metabox \
|
|
Simple
|
|
|
|
THEME_DIR=$(datadir)/themes
|
|
THEME_SUBDIR=metacity-1
|
|
|
|
install-data-local:
|
|
$(mkinstalldirs) $(DESTDIR)$(THEME_DIR); \
|
|
for THEME in $(THEMES); do \
|
|
echo '-- Installing theme '$$THEME; \
|
|
$(mkinstalldirs) $(DESTDIR)$(THEME_DIR)/$$THEME; \
|
|
$(mkinstalldirs) $(DESTDIR)$(THEME_DIR)/$$THEME/$(THEME_SUBDIR); \
|
|
(installfiles=`find $(srcdir)/$$THEME -name "*.png" -o -name "*.xml"`; \
|
|
for i in $$installfiles; do \
|
|
echo '-- Installing '$$i ; \
|
|
$(INSTALL_DATA) $$i $(DESTDIR)$(THEME_DIR)/$$THEME/$(THEME_SUBDIR) ; \
|
|
done) \
|
|
done
|
|
|
|
uninstall-local:
|
|
for THEME in $(THEMES); do \
|
|
echo '-- Uninstalling theme '$$THEME; \
|
|
(uninstallfiles=`find $(srcdir)/$$THEME -name "*.png" -o -name "*.xml"`; \
|
|
for i in $$uninstallfiles; do \
|
|
i=`basename $$i`; \
|
|
echo '-- Removing '$$i ; \
|
|
rm -f $(DESTDIR)$(THEME_DIR)/$$THEME/$(THEME_SUBDIR)/$$i ; \
|
|
done); \
|
|
rmdir $(DESTDIR)$(THEME_DIR)/$$THEME/$(THEME_SUBDIR) || :; \
|
|
rmdir $(DESTDIR)$(THEME_DIR)/$$THEME || :; \
|
|
done
|
|
-rmdir $(DESTDIR)$(THEME_DIR)
|
|
|
|
dist-hook:
|
|
mkdir $(distdir)/themes; \
|
|
for THEME in $(THEMES); do \
|
|
echo '-- Disting theme '$$THEME; \
|
|
mkdir $(distdir)/$$THEME; \
|
|
(installfiles=`find $(srcdir)/$$THEME -name "*.png" -o -name "*.xml"`; \
|
|
for i in $$installfiles; do \
|
|
echo '-- Disting '$$i ; \
|
|
cp $$i $(distdir)/$$THEME; \
|
|
done) \
|
|
done
|