4.104.114.84.95
Last change
on this file since 8548fe0 was
8548fe0,
checked in by Joel Sherrill <joel.sherrill@…>, on 02/18/99 at 18:36:05
|
Part of the automake VI patch from Ralf Corsepius <corsepiu@…>:
5) rtems-rc-19990202-1.diff/reorg-install.sh
reorg-install.sh fixes a Makefile variable name clash of RTEMS
configuration files and automake/autoconf standards.
Until now, RTEMS used $(INSTALL) for install-if-change. Automake and
autoconf use $(INSTALL) for a bsd-compatible install. As
install-if-change and bsd-install are not compatible, I renamed all
references to install-if-changed to $(INSTALL_CHANGED) and used
$(INSTALL) for bsd-install (==automake/autoconf standard). When
automake will be introduced install-if-change will probably be replaced
by $(INSTALL) and therefore will slowly vanish. For the moment, this
patch fixes a very nasty problem which prevents adding any automake file
until now (There are still more).
|
-
Property mode set to
100644
|
File size:
1.6 KB
|
Rev | Line | |
---|
[bffb938] | 1 | # |
---|
[21c1513] | 2 | # $Id$ |
---|
[bffb938] | 3 | # |
---|
| 4 | # OS-specific configuration |
---|
| 5 | # |
---|
| 6 | # Author: Ralf Corsepius (corsepiu@faw.uni-ulm.de) 97/11/08 |
---|
| 7 | # |
---|
| 8 | # Derived from rtems/c/make/os/*.cfg in previous RTEMS version. |
---|
| 9 | # |
---|
| 10 | |
---|
| 11 | RTEMS_HOST = @RTEMS_HOST@ |
---|
| 12 | |
---|
| 13 | # |
---|
| 14 | # Stuff to clean and clobber for the OS |
---|
| 15 | # |
---|
| 16 | |
---|
| 17 | CLEAN_OS = |
---|
| 18 | CLOBBER_OS = *~ *.bak TAGS tags |
---|
| 19 | |
---|
| 20 | SHELL=/bin/sh |
---|
| 21 | ECHO=echo |
---|
| 22 | |
---|
| 23 | CAT=@CAT@ |
---|
| 24 | RM=@RM@ -f |
---|
| 25 | CP=@CP@ |
---|
| 26 | MV=@MV@ |
---|
| 27 | LN=@LN@ |
---|
| 28 | MKDIR=@MKDIR@ |
---|
| 29 | CHMOD=@CHMOD@ |
---|
| 30 | SED=@SED@ |
---|
| 31 | M4=@M4@ |
---|
| 32 | |
---|
[011677f] | 33 | # Global tools |
---|
| 34 | PACKHEX=$(PROJECT_TOOLS)/packhex |
---|
| 35 | |
---|
[8548fe0] | 36 | INSTALL_CHANGE=$(PROJECT_TOOLS)/install-if-change |
---|
[bffb938] | 37 | INSTALL_VARIANT=$(PROJECT_TOOLS)/install-if-change -V "$(LIB_VARIANT)" |
---|
| 38 | |
---|
[98100d2] | 39 | # FIXME: HACK for a bug in cygwin-hosted egcs which returns a mixture |
---|
| 40 | # of '\\' and '/' as path separators. |
---|
| 41 | # Should be removed as soon as this bug is fixed in egcs. |
---|
| 42 | GCCSED = @GCCSED@ |
---|
| 43 | |
---|
[bffb938] | 44 | # ksh (or bash) is used by some shell scripts; ref build-tools/scripts/Makefile |
---|
| 45 | # |
---|
| 46 | # Must have shell functions. Some ksh's core dump mysteriously and |
---|
| 47 | # unreliably on RTEMS shell scripts. bash appears to be the most |
---|
| 48 | # reliable but late model ksh's are usually OK. |
---|
| 49 | KSH=@KSH@ |
---|
| 50 | |
---|
| 51 | # |
---|
| 52 | # RCS support |
---|
| 53 | # |
---|
| 54 | RCS_CLEAN=$(PROJECT_TOOLS)/rcs-clean |
---|
| 55 | |
---|
| 56 | # |
---|
| 57 | # Rule to install a shell script with the proper shell to run it. |
---|
| 58 | # |
---|
| 59 | |
---|
| 60 | # when debugging, one may want to save the previous incarnation of the |
---|
| 61 | # installed script. Replace the first line of this rule to do this. |
---|
| 62 | # |
---|
| 63 | # -$(RM) $@.old |
---|
| 64 | # -$(MV) $@ $@.old >/dev/null 2>&1 |
---|
| 65 | |
---|
| 66 | define make-script |
---|
| 67 | -$(RM) $@ |
---|
| 68 | $(SED) -e '1,1s?^#!KSHELL?#!$(KSH)?' \ |
---|
| 69 | -e '1,1s?^#!SHELL?#!$(SHELL)?' < $< > $@ |
---|
| 70 | $(CHMOD) 0555 $@ |
---|
| 71 | endef |
---|
[f95d2b53] | 72 | |
---|
| 73 | INSTBINFLAGS = -m 0755 |
---|
| 74 | INSTDATAFLAGS = -m 0644 |
---|
| 75 | INSTLIBFLAGS = -m 0644 |
---|
| 76 | INSTDIRFLAGS = -m 0755 -d |
---|
| 77 | INSTINCFLAGS = -m 0644 |
---|
Note: See
TracBrowser
for help on using the repository browser.