summaryrefslogtreecommitdiff
path: root/lang/lua/patches/patch-ab
blob: 653beb55dd49be97578ec61341dd976e5ff714b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ab,v 1.6 2005/09/04 04:59:36 jlam Exp $

--- Makefile.orig	Fri Mar 12 01:50:55 2004
+++ Makefile
@@ -29,12 +29,12 @@ strip:
 	$(STRIP) bin/*
 
 # official installation
-install: all strip
+install: all
 	mkdir -p $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_MAN)
-	$(INSTALL_EXEC) bin/* $(INSTALL_BIN)
-	$(INSTALL_DATA) include/*.h $(INSTALL_INC)
-	$(INSTALL_DATA) lib/*.a $(INSTALL_LIB)
-	$(INSTALL_DATA) doc/*.1 $(INSTALL_MAN)
+	cd bin; for f in *; do $(LIBTOOL) --mode=install $(BSD_INSTALL_PROGRAM) $$f $(INSTALL_BIN); done
+	cd include; for f in *.h; do $(BSD_INSTALL_DATA) $$f $(INSTALL_INC); done
+	cd lib; for f in *.la; do $(LIBTOOL) --mode=install $(BSD_INSTALL_LIB) $$f $(INSTALL_LIB); done
+	cd doc; for f in *.1; do $(BSD_INSTALL_MAN) $$f $(INSTALL_MAN); done
 
 # shared libraries (for Linux)
 so: