summaryrefslogtreecommitdiffstats
path: root/c/src
diff options
context:
space:
mode:
Diffstat (limited to 'c/src')
-rw-r--r--c/src/exec/score/tools/generic/Makefile.in5
-rw-r--r--c/src/exec/score/tools/hppa1.1/Makefile.in2
-rw-r--r--c/src/exec/score/tools/unix/Makefile.in2
-rw-r--r--c/src/make/host.cfg.in11
4 files changed, 11 insertions, 9 deletions
diff --git a/c/src/exec/score/tools/generic/Makefile.in b/c/src/exec/score/tools/generic/Makefile.in
index 419b20b96c..e5fdec7d7f 100644
--- a/c/src/exec/score/tools/generic/Makefile.in
+++ b/c/src/exec/score/tools/generic/Makefile.in
@@ -22,13 +22,12 @@ PGMS=size_rtems
INSTALLED=$(PGMS:%=$(DESTDIR)/%)
all: $(DESTDIR) $(PGMS) install
- echo $(DESTDIR)
$(DESTDIR):
- [ -d $@ ] || $(MKDIR) $@
+ $(BSDINSTALL) $(INSTDIRFLAGS) $@
install: $(INSTALLED)
# Install the program
$(DESTDIR)/%: %
- $(make-script)
+ $(BSDINSTALL) $(INSTBINFLAGS) $^ $@
diff --git a/c/src/exec/score/tools/hppa1.1/Makefile.in b/c/src/exec/score/tools/hppa1.1/Makefile.in
index c5cdbb753e..4a8be52b11 100644
--- a/c/src/exec/score/tools/hppa1.1/Makefile.in
+++ b/c/src/exec/score/tools/hppa1.1/Makefile.in
@@ -50,7 +50,7 @@ CLEAN_ADDITIONS +=
CLOBBER_ADDITIONS +=
all: ${ARCH} $(SRCS) preinstall $(PGMS)
- $(INSTALL) -m 555 ${PGMS} ${PROJECT_RELEASE}/bin
+ $(INSTALL) $(INSTBINFLAGS) ${PGMS} ${PROJECT_RELEASE}/bin
# Hack
# we are #including files that haven't been installed yet.
diff --git a/c/src/exec/score/tools/unix/Makefile.in b/c/src/exec/score/tools/unix/Makefile.in
index 6041f15730..f49c25c734 100644
--- a/c/src/exec/score/tools/unix/Makefile.in
+++ b/c/src/exec/score/tools/unix/Makefile.in
@@ -50,7 +50,7 @@ CLEAN_ADDITIONS +=
CLOBBER_ADDITIONS +=
all: ${ARCH} $(SRCS) $(PGMS)
- $(INSTALL) -m 555 ${PGMS} ${PROJECT_RELEASE}/bin
+ $(BSDINSTALL) $(INSTBINFLAGS) ${PGMS} ${PROJECT_RELEASE}/bin
preinstall:
diff --git a/c/src/make/host.cfg.in b/c/src/make/host.cfg.in
index 8b2350e6da..a68a1b2faf 100644
--- a/c/src/make/host.cfg.in
+++ b/c/src/make/host.cfg.in
@@ -30,13 +30,10 @@ CHMOD=@CHMOD@
SED=@SED@
M4=@M4@
+BSDINSTALL=@INSTALL@
INSTALL=$(PROJECT_TOOLS)/install-if-change
INSTALL_VARIANT=$(PROJECT_TOOLS)/install-if-change -V "$(LIB_VARIANT)"
-FGREP=@FGREP@
-GREP=@GREP@
-EGREP=@EGREP@
-
# FIXME: HACK for a bug in cygwin-hosted egcs which returns a mixture
# of '\\' and '/' as path separators.
# Should be removed as soon as this bug is fixed in egcs.
@@ -70,3 +67,9 @@ define make-script
-e '1,1s?^#!SHELL?#!$(SHELL)?' < $< > $@
$(CHMOD) 0555 $@
endef
+
+INSTBINFLAGS = -m 0755
+INSTDATAFLAGS = -m 0644
+INSTLIBFLAGS = -m 0644
+INSTDIRFLAGS = -m 0755 -d
+INSTINCFLAGS = -m 0644