From: Maxim Mamontov <faust.madf@gmail.com>
Date: Mon, 16 Mar 2015 20:43:56 +0000 (+0200)
Subject: Another bunch of fixes related to BSD-like install.
X-Git-Tag: 2.409~187
X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/d1bead671d124209e140c22d956893eb632bd109?ds=sidebyside;hp=452637bc90525a9a5b412ab99793006cf14c1e31

Another bunch of fixes related to BSD-like install.
---

diff --git a/projects/stargazer/plugins/Makefile.in b/projects/stargazer/plugins/Makefile.in
index e1ced728..36aebbef 100644
--- a/projects/stargazer/plugins/Makefile.in
+++ b/projects/stargazer/plugins/Makefile.in
@@ -34,9 +34,9 @@ clean:
 install: $(PROG)
 	mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/lib/stg
 ifeq ($(DEBUG), yes)
-	install -D -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/lib/stg/$(PROG)
+	install -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/lib/stg/$(PROG)
 else
-	install -D -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/lib/stg/$(PROG)
+	install -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/lib/stg/$(PROG)
 endif
 
 uninstall:
diff --git a/stglibs/Makefile.in b/stglibs/Makefile.in
index b5d1195c..11dfcfb1 100644
--- a/stglibs/Makefile.in
+++ b/stglibs/Makefile.in
@@ -36,9 +36,11 @@ clean:
 
 install: $(PROG)
 ifeq ($(DEBUG), yes)
-	install -D -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/lib/stg/$(PROG)
+	mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/lib/stg
+	install -m $(BIN_MODE) -o $(OWNER) $(PROG) $(PREFIX)/usr/lib/stg/$(PROG)
 else
-	install -D -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/lib/stg/$(PROG)
+	mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/lib/stg
+	install -m $(BIN_MODE) -o $(OWNER) -s $(PROG) $(PREFIX)/usr/lib/stg/$(PROG)
 endif
 	mkdir -m $(DIR_MODE) -p $(PREFIX)/usr/include/stg
 	install -m $(DATA_MODE) -o $(OWNER) $(addprefix include/stg/,$(INCS)) $(PREFIX)/usr/include/stg/