summaryrefslogtreecommitdiffstats
path: root/lang/rexx-imc/files/patch-Makefile.REXXimc
blob: b435f31cfe1e15088fd078827660de571005236d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--- Makefile.REXXimc.orig	1999-02-11 15:05:44 UTC
+++ Makefile.REXXimc
@@ -1,7 +1,7 @@
 #Makefile for REXX/imc
 
 SO = librexx.so
-SONAME= $(SO).$(VER)
+SONAME= $(SO).2
 
 DATE = -DDAY=$(RXDAY) -DMONTH=$(RXMONTH) -DYEAR=$(RXYEAR)
 
@@ -35,11 +35,13 @@ install-pgm: all
 
 install-fn: $(MATH)
 	$(VERBOSE) "install-fn:"
-	test -f rxmathfn.rxfn && cp -p rxmathfn.rxfn $(SRC)/rxmathfn.rxlib $(REXXLIBDIR) \
-	|| cp -p $(SRC)/rxmathfn.rexx $(SRC)/rxmathfn.rxlib $(REXXLIBDIR)
+	test -f rxmathfn.rxfn  && \
+	cp -p rxmathfn.rxfn $(SRC)/rxmathfn.rxlib $(PREFIX)/lib || \
+	cp -p $(SRC)/rxmathfn.rexx $(SRC)/rxmathfn.rxlib $(PREFIX)/lib
 
 install-man: rexx.1
 	$(VERBOSE) "install-man:"
+	mkdir -p $(MANDIR)
 	cp -p rexx.1 $(SRC)/rxque.1 $(SRC)/rxstack.1 $(MANDIR)
 
 uninstall: uninstall-pgm uninstall-fn uninstall-man
@@ -69,8 +71,7 @@ $(LIBDIR)/$(SONAME): $(LIBFILES)
 
 $(LIBDIR)/$(SO): $(LIBDIR)/$(SONAME)
 	$(VERBOSE) "$(LIBDIR)/$(SO):"
-	rm -f $(LIBDIR)/$(SO)
-	ln -s $(SONAME) $(LIBDIR)/$(SO)
+	ln -sf $(SONAME) $(LIBDIR)/$(SO)
 
 $(LIBDIR)/librexx.a: $(LIBFILES)
 	$(VERBOSE) "$(LIBDIR)/librexx.a:"
OpenPOWER on IntegriCloud