[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth Makefile.am
From: |
Yann Dirson |
Subject: |
[Wesnoth-cvs-commits] wesnoth Makefile.am |
Date: |
Fri, 05 Nov 2004 20:23:50 -0500 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Yann Dirson <address@hidden> 04/11/05 23:51:19
Modified files:
. : Makefile.am
Log message:
when in tinygui mode, install portraits, maps and story images in
reduced format
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/Makefile.am.diff?tr1=1.18&tr2=1.19&r1=text&r2=text
Patches:
Index: wesnoth/Makefile.am
diff -u wesnoth/Makefile.am:1.18 wesnoth/Makefile.am:1.19
--- wesnoth/Makefile.am:1.18 Fri Nov 5 21:14:38 2004
+++ wesnoth/Makefile.am Fri Nov 5 23:51:18 2004
@@ -14,19 +14,32 @@
$(findmoredata) )
findnoinst=(cd $(top_srcdir) && find utils -name CVS -prune -o -name ".cvs*"
-o -name ".\#*" -o -type d -o -print && find MANUAL*)
+w_preparefileinstall = if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+
install-data-local:
@$(NORMAL_INSTALL)
test -z "$(pkgdatadir)" || $(mkdir_p) "$(DESTDIR)$(pkgdatadir)"
srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
( $(finddata) ) | while read p; do \
- if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- case $$p in \
- $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
- *) f=$$p;; \
- esac; \
+ $(w_preparefileinstall) \
echo " $(install_sh_DATA) '$$d$$p' '$(DESTDIR)$(pkgdatadir)/$$f'"; \
$(install_sh_DATA) "$$d$$p" "$(DESTDIR)$(pkgdatadir)/$$f"; \
done
+if TINYGUI
+ (cd $(top_srcdir) && find images/portraits $(findfilterflags) -o
-print) | while read p; do \
+ $(w_preparefileinstall) \
+ convert -size 80x80 -resize 80x80 "$$d$$p"
"$(DESTDIR)$(pkgdatadir)/$$f"; \
+ done
+ (cd $(top_srcdir) && find images/maps images/campaigns/*/maps
images/campaigns/*/story $(findfilterflags) -o -print) | while read p; do \
+ $(w_preparefileinstall) \
+ convert -size 240x180 -resize 240x180 "$$d$$p"
"$(DESTDIR)$(pkgdatadir)/$$f"; \
+ done
+endif
+
uninstall-local:
@$(NORMAL_UNINSTALL)
@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \