[sword-cvs] sword/icu Makefile.am,1.5,1.6

sword@www.crosswire.org sword@www.crosswire.org
Fri, 11 Jul 2003 10:41:12 -0700


Update of /usr/local/cvsroot/sword/icu
In directory www:/tmp/cvs-serv4727/icu

Modified Files:
	Makefile.am 
Log Message:

dglassey: icu makefile work
ICUDATA isn't used so remove it from the mgr Makefile
install the icu stuff to $(libdir)/sword/icu$(ICU_VER) so that different versions coexist
(probly want to change that to depend on sword ver as well)


Index: Makefile.am
===================================================================
RCS file: /usr/local/cvsroot/sword/icu/Makefile.am,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- Makefile.am	10 Jul 2003 10:30:14 -0000	1.5
+++ Makefile.am	11 Jul 2003 17:41:10 -0000	1.6
@@ -24,7 +24,7 @@
 
 
 if ICU
-pkglib_DATA = $(swicuSOURCES:.txt=.res)
+swicu_DATA = $(swicuSOURCES:.txt=.res)
 endif
 EXTRA_DIST = $(swicuSOURCES)
 
@@ -34,3 +34,32 @@
 
 .txt.res:
 	$(GENRB) -s . -d . $<
+
+
+if ICU
+swicudir = $(pkglibdir)/icu$(ICU_VER)
+
+installswicu_DATA: $(swicu_DATA)
+	@$(NORMAL_INSTALL)
+	$(mkinstalldirs) $(DESTDIR)$(swicudir)
+	@list='$(modsDATA)'; for p in $$list; do \
+	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+	  f="`echo $$p | sed -e 's|^.*/||'`"; \
+	  echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(swicudir)/$$f"; \
+	  $(INSTALL_DATA) $$d$$p $(DESTDIR)$(swicudir)/$$f; \
+	done
+
+uninstallswicu_DATA:
+	@$(NORMAL_UNINSTALL)
+	@list='$(swicu_DATA)'; for p in $$list; do \
+	  f="`echo $$p | sed -e 's|^.*/||'`"; \
+	  echo " rm -f $(DESTDIR)$(swicudir)/$$f"; \
+	  rm -f $(DESTDIR)$(swicudir)/$$f; \
+	done
+else
+swicudir = $(pkglibdir)
+
+installswicu_DATA:
+
+uninstallswicu_DATA:
+endif