linsmith (0.99.21-1) 10_makefile.in

Summary

 Makefile.in |   16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

    
download this patch

Patch contents

#! /bin/sh -e

# DP: Fix the Makefile.in to make it copy the files in the correct place
# DP: by <debian@marga.com.ar>

case "$1" in
    -patch) patch -f --no-backup-if-mismatch -p0 < $0;;
    -unpatch) patch -f --no-backup-if-mismatch -R -p0 < $0;;
    *)
        echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
        exit 1
esac
exit 0
@DPATCH@
--- Makefile.in.old	2005-10-17 14:09:17.000000000 -0300
+++ Makefile.in	2005-11-03 00:21:29.000000000 -0300
@@ -609,10 +609,20 @@
 	@$(NORMAL_INSTALL)
 	if test -d $(srcdir)/datafiles; then \
 	  $(mkinstalldirs) $(DESTDIR)$(datadir)/$(PACKAGE); \
+	  $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/$(PACKAGE)/examples; \
 	  for datafile in $(srcdir)/datafiles/*; do \
-	    if test -f $$datafile; then \
-	      $(INSTALL_DATA) $$datafile $(DESTDIR)$(datadir)/$(PACKAGE); \
-	    fi \
+	    case $$datafile in \
+			*.load | *.circ | *.xml ) \
+			    if test -f $$datafile; then \
+			      $(INSTALL_DATA) $$datafile $(DESTDIR)$(datadir)/doc/$(PACKAGE)/examples; \
+	    		fi \
+			;; \
+			*) \
+			    if test -f $$datafile; then \
+			      $(INSTALL) $$datafile $(DESTDIR)$(datadir)/$(PACKAGE); \
+	    		fi \
+			;; \
+		esac \
 	  done \
 	fi