Merging upstream version 0.4.0.
[debian/lxappearance.git] / Makefile.in
index 0ea0bc9..2d34b0f 100644 (file)
@@ -79,8 +79,8 @@ am__base_list = \
   sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
   sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
 am__installdirs = "$(DESTDIR)$(desktopdir)" \
-       "$(DESTDIR)$(support_scriptdir)"
-DATA = $(desktop_DATA) $(support_script_DATA)
+       "$(DESTDIR)$(support_scriptdir)" "$(DESTDIR)$(uidir)"
+DATA = $(desktop_DATA) $(support_script_DATA) $(ui_DATA)
 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive        \
   distclean-recursive maintainer-clean-recursive
 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
@@ -241,18 +241,29 @@ target_alias = @target_alias@
 top_build_prefix = @top_build_prefix@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
+NULL = 
 SUBDIRS = src po man
+ui_in_files = \
+       data/lxappearance.glade \
+       data/demo.glade \
+       $(NULL)
+
+uidir = $(datadir)/lxappearance
+ui_DATA = $(ui_in_files:.glade=.ui)
 support_scriptdir = $(datadir)/lxappearance
 support_script_DATA = \
-        scripts/install-icon-theme.sh
+        scripts/install-icon-theme.sh \
+        $(NULL)
 
 desktopdir = $(datadir)/applications
 desktop_in_files = lxappearance.desktop.in
 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
 EXTRA_DIST = \
        autogen.sh \
+       $(ui_DATA) \
        $(support_script_DATA) \
-       $(desktop_DATA)
+       $(desktop_DATA) \
+       $(NULL)
 
 all: config.h
        $(MAKE) $(AM_MAKEFLAGS) all-recursive
@@ -349,6 +360,26 @@ uninstall-support_scriptDATA:
        test -n "$$files" || exit 0; \
        echo " ( cd '$(DESTDIR)$(support_scriptdir)' && rm -f" $$files ")"; \
        cd "$(DESTDIR)$(support_scriptdir)" && rm -f $$files
+install-uiDATA: $(ui_DATA)
+       @$(NORMAL_INSTALL)
+       test -z "$(uidir)" || $(MKDIR_P) "$(DESTDIR)$(uidir)"
+       @list='$(ui_DATA)'; test -n "$(uidir)" || list=; \
+       for p in $$list; do \
+         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+         echo "$$d$$p"; \
+       done | $(am__base_list) | \
+       while read files; do \
+         echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(uidir)'"; \
+         $(INSTALL_DATA) $$files "$(DESTDIR)$(uidir)" || exit $$?; \
+       done
+
+uninstall-uiDATA:
+       @$(NORMAL_UNINSTALL)
+       @list='$(ui_DATA)'; test -n "$(uidir)" || list=; \
+       files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+       test -n "$$files" || exit 0; \
+       echo " ( cd '$(DESTDIR)$(uidir)' && rm -f" $$files ")"; \
+       cd "$(DESTDIR)$(uidir)" && rm -f $$files
 
 # This directory's subdirectories are mostly independent; you can cd
 # into them and run `make' without going through this Makefile.
@@ -664,7 +695,7 @@ check: check-recursive
 all-am: Makefile $(DATA) config.h
 installdirs: installdirs-recursive
 installdirs-am:
-       for dir in "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(support_scriptdir)"; do \
+       for dir in "$(DESTDIR)$(desktopdir)" "$(DESTDIR)$(support_scriptdir)" "$(DESTDIR)$(uidir)"; do \
          test -z "$$dir" || $(MKDIR_P) "$$dir"; \
        done
 install: install-recursive
@@ -713,7 +744,8 @@ info: info-recursive
 
 info-am:
 
-install-data-am: install-desktopDATA install-support_scriptDATA
+install-data-am: install-desktopDATA install-support_scriptDATA \
+       install-uiDATA
        @$(NORMAL_INSTALL)
        $(MAKE) $(AM_MAKEFLAGS) install-data-hook
 install-dvi: install-dvi-recursive
@@ -760,7 +792,8 @@ ps: ps-recursive
 
 ps-am:
 
-uninstall-am: uninstall-desktopDATA uninstall-support_scriptDATA
+uninstall-am: uninstall-desktopDATA uninstall-support_scriptDATA \
+       uninstall-uiDATA
 
 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
        ctags-recursive install-am install-data-am install-strip \
@@ -778,12 +811,15 @@ uninstall-am: uninstall-desktopDATA uninstall-support_scriptDATA
        install-html install-html-am install-info install-info-am \
        install-man install-pdf install-pdf-am install-ps \
        install-ps-am install-strip install-support_scriptDATA \
-       installcheck installcheck-am installdirs installdirs-am \
-       maintainer-clean maintainer-clean-generic mostlyclean \
-       mostlyclean-generic pdf pdf-am ps ps-am tags tags-recursive \
-       uninstall uninstall-am uninstall-desktopDATA \
-       uninstall-support_scriptDATA
+       install-uiDATA installcheck installcheck-am installdirs \
+       installdirs-am maintainer-clean maintainer-clean-generic \
+       mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \
+       tags-recursive uninstall uninstall-am uninstall-desktopDATA \
+       uninstall-support_scriptDATA uninstall-uiDATA
+
 
+%.ui: %.glade
+       cp $< $@
 @INTLTOOL_DESKTOP_RULE@
 
 install-data-hook: