Skip to content

Commit

Permalink
Get rid of GNU-style `$(shell ...)'.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@5122 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
hornik committed Jul 11, 1999
1 parent 71c7dc0 commit aee39fb
Show file tree
Hide file tree
Showing 9 changed files with 133 additions and 110 deletions.
10 changes: 9 additions & 1 deletion afm/Makefile.in
Expand Up @@ -11,7 +11,15 @@ subdir = afm
include $(top_builddir)/Makeconf

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
DISTFILES = $(shell cd $(srcdir) && ls Makefile.in *.afm *.lt1)
DISTFILES = Makefile.in \
agd_____.lt1 agdo____.lt1 agw_____.lt1 agwo____.lt1 bkd_____.lt1 \
bkdi____.lt1 bkl_____.lt1 bkli____.lt1 cob_____.lt1 cobo____.lt1 \
com_____.lt1 coo_____.lt1 hv______.lt1 hvb_____.lt1 hvbo____.lt1 \
hvn_____.lt1 hvnb____.lt1 hvnbo___.lt1 hvno____.lt1 hvo_____.lt1 \
ncb_____.lt1 ncbi____.lt1 nci_____.lt1 ncr_____.lt1 pob_____.lt1 \
pobi____.lt1 poi_____.lt1 por_____.lt1 tib_____.lt1 tibi____.lt1 \
tii_____.lt1 tir_____.lt1 \
sy______.afm

all: Makefile R

Expand Down
64 changes: 32 additions & 32 deletions src/appl/Makefile.in
Expand Up @@ -10,15 +10,11 @@ subdir = src/appl

include $(top_builddir)/Makeconf

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
DISTFILES = $(shell cd $(srcdir); \
ls COPYRIGHT COPYRIGHT.ftn Makefile.in ROUTINES *.[cfh])

## All functions/subroutines to be called via .C() or .Fortran() must
## also have an entry in `./ROUTINES' in order to be ``pre-dyn.loaded'';
## see `../unix/dynload.c'.

SRCS_C = \
SOURCES_C = \
S_compat.c \
approx.c \
bakslv.c \
Expand All @@ -42,49 +38,53 @@ SRCS_C = \
strsignif.c \
tabulate.c \
zeroin.c
DEPS = $(SRCS_C:.c=.d)
OBJS = $(SRCS_C:.c=.o) \
$(BLAS) \
ch2inv.o \
chol.o \
dpbfa.o \
dpbsl.o \
dpoco.o \
dpodi.o \
dpofa.o \
dposl.o \
dqrdc.o \
dqrdc2.o \
dqrls.o \
dqrsl.o \
dqrutl.o \
dsvdc.o \
dtrco.o \
dtrsl.o \
eigen.o \
fmin.o \
lminfl.o \
uncmin.o
SOURCES_F = \
ch2inv.f \
chol.f \
dpbfa.f \
dpbsl.f \
dpoco.f \
dpodi.f \
dpofa.f \
dposl.f \
dqrdc.f \
dqrdc2.f \
dqrls.f \
dqrsl.f \
dqrutl.f \
dsvdc.f \
dtrco.f \
dtrsl.f \
eigen.f \
fmin.f \
lminfl.f \
uncmin.f
DEPENDS = $(SOURCES_C:.c=.d)
OBJECTS = $(SOURCES_C:.c=.o) $(SOURCES_F:.f=.o) $(BLAS)

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
DISTFILES = COPYRIGHT COPYRIGHT.ftn Makefile.in README ROUTINES \
$(SOURCES_C) $(SOURCES_F) blas.f

LIB = libappl.a

all: Makefile Makedeps R

Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(DEPS)
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(DEPENDS)
@cd $(top_builddir) && \
CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \
$(SHELL) ./config.status

Makedeps: Makefile
@cat $(DEPS) >> Makefile
@cat $(DEPENDS) >> Makefile
@touch $@

R: Makefile
@$(MAKE) Makedeps
@$(MAKE) $(LIB)

$(LIB): $(OBJS)
$(AR) cr $(LIB) $(OBJS)
$(LIB): $(OBJECTS)
$(AR) cr $(LIB) $(OBJECTS)
$(RANLIB) $(LIB)

mostlyclean: clean
Expand Down
32 changes: 22 additions & 10 deletions src/gnome/Makefile.in
Expand Up @@ -12,10 +12,7 @@ include $(top_builddir)/Makeconf

ALL_CPPFLAGS = $(GNOME_INCLUDEDIR) $(R_XTRA_CPPFLAGS) $(X_CFLAGS) $(CPPFLAGS) $(DEFS)

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
DISTFILES = $(shell cd $(srcdir) && ls Makefile.in *.[cfh])

SRCS = \
SOURCES = \
../unix/dataentry.c \
../unix/devPS.c \
../unix/devPicTeX.c \
Expand All @@ -33,8 +30,23 @@ SRCS = \
terminal-menu.c \
terminal-prefs.c \
terminal-toolbar.c
DEPS = $(SRCS:.c=.d)
OBJS = $(SRCS:.c=.o)
DEPENDS = $(SOURCES:.c=.d)
OBJECTS = $(SOURCES:.c=.o)
HEADERS = \
dataentry.h \
devGNOME.h \
devGTK.h \
gdkrotated.h \
gnome-find-dialog.h \
gtkconsole.h \
terminal-functions.h \
terminal-menu.h \
terminal-prefs.h \
terminal-toolbar.h \
terminal.h

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
DISTFILES = Makefile.in $(SOURCES) $(HEADERS)

LIB = libRgnome.a

Expand All @@ -45,13 +57,13 @@ Makefile: $(srcdir)/Makefile.in \
../include/Version.h \
../include/FFDecl.h \
../include/FFTab.h \
$(DEPS)
$(DEPENDS)
@cd $(top_builddir) && \
CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \
$(SHELL) ./config.status

Makedeps: Makefile
@cat $(DEPS) >> $<
@cat $(DEPENDS) >> $<
@touch $@

R: Makefile
Expand All @@ -63,8 +75,8 @@ R: Makefile
../include/FFDecl.h ../include/FFTab.h: $(top_srcdir)/src/appl/ROUTINES
(cd ../include; $(top_srcdir)/tools/GETSYMBOLS)

$(LIB): $(OBJS)
$(AR) cr $(LIB) $(OBJS)
$(LIB): $(OBJECTS)
$(AR) cr $(LIB) $(OBJECTS)
$(RANLIB) $(LIB)

mostlyclean: clean
Expand Down
17 changes: 10 additions & 7 deletions src/include/Makefile.in
Expand Up @@ -10,15 +10,18 @@ subdir = src/include

include $(top_builddir)/Makeconf

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
DISTFILES = $(shell cd $(srcdir) \
&& ls Makefile.in Platform.h.in Version.h.in *.h)

SRC_HEADERS = S.h S_compat.h f2c.h Arith.h Complex.h Error.h Errormsg.h \
Fortran.h Applic.h Blas.h Linpack.h Mathlib.h Memory.h PrtUtil.h \
Random.h Rdefines.h Rinternals.h Utils.h
SRC_HEADERS = Applic.h Arith.h Blas.h Complex.h Error.h Errormsg.h \
Fortran.h Linpack.h Mathlib.h Memory.h PrtUtil.h Random.h \
Rdefines.h Rinternals.h S.h S_compat.h Utils.h f2c.h
OBJ_HEADERS = Platform.h Version.h

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
DISTFILES = Makefile.in README \
Defn.h Fileio.h Graphics.h IOStuff.h Parse.h Print.h \
Statdecl.h Stattab.h \
$(SRC_HEADERS) \
Platform.h.in Version.h.in

all: Makefile R

Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
Expand Down
32 changes: 16 additions & 16 deletions src/main/Makefile.in
Expand Up @@ -10,10 +10,7 @@ subdir = src/main

include $(top_builddir)/Makeconf

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
DISTFILES = $(shell cd $(srcdir) && ls Makefile.in *.[cfhy])

SRCS = \
SOURCES = \
arithmetic.c \
array.c \
attrib.c \
Expand Down Expand Up @@ -77,8 +74,11 @@ SRCS = \
unique.c \
util.c \
version.c
DEPS = $(SRCS:.c=.d)
OBJS = $(SRCS:.c=.o)
DEPENDS = $(SOURCES:.c=.d)
OBJECTS = $(SOURCES:.c=.o)

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
DISTFILES = $(SOURCES) arithmetic.h names.h gram.y

RLIBS = ../unix/libunix.a ../appl/libappl.a ../nmath/libmath.a
RGNOMELIBS = ../gnome/libRgnome.a ../appl/libappl.a ../nmath/libmath.a
Expand All @@ -94,13 +94,13 @@ Makefile: $(srcdir)/Makefile.in \
../include/Platform.h \
../include/Version.h \
../include/FFDecl.h \
$(DEPS)
$(DEPENDS)
@cd $(top_builddir) && \
CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \
$(SHELL) ./config.status

Makedeps: Makefile
@cat $(DEPS) >> Makefile
@cat $(DEPENDS) >> Makefile
@touch $@

R: Makefile
Expand All @@ -115,16 +115,16 @@ R: Makefile
../include/FFDecl.h: $(top_srcdir)/src/appl/ROUTINES
(cd ../include; $(top_srcdir)/tools/GETSYMBOLS)

$(top_builddir)/bin/R.X11: $(OBJS) $(RLIBS) @EXPORTFILE@
$(top_builddir)/bin/R.X11: $(OBJECTS) $(RLIBS) @EXPORTFILE@
@$(MKINSTALLDIRS) $(top_builddir)/bin
$(LDCMD) $(DLLFLAGS) -o $@ $(OBJS) $(ALL_LIBS)
$(LDCMD) $(DLLFLAGS) -o $@ $(OBJECTS) $(ALL_LIBS)

$(top_builddir)/bin/R.gnome: $(OBJS) $(RGNOMELIBS)
$(top_builddir)/bin/R.gnome: $(OBJECTS) $(RGNOMELIBS)
@$(MKINSTALLDIRS) $(top_builddir)/bin
$(LDCMD) $(DLLFLAGS) $(GNOME_LIBDIR) -o $@ $(OBJS) $(ALL_GNOME_LIBS)
$(LDCMD) $(DLLFLAGS) $(GNOME_LIBDIR) -o $@ $(OBJECTS) $(ALL_GNOME_LIBS)

$(top_builddir)/etc/R.exp: $(OBJS) $(RLIBS)
@$(top_srcdir)/tools/ldAIX4 -o $@ $(OBJS) $(RLIBS)
$(top_builddir)/etc/R.exp: $(OBJECTS) $(RLIBS)
@$(top_srcdir)/tools/ldAIX4 -o $@ $(OBJECTS) $(RLIBS)

../unix/libunix.a:
(cd ../unix; $(MAKE) $(@F))
Expand All @@ -134,8 +134,8 @@ $(top_builddir)/etc/R.exp: $(OBJS) $(RLIBS)
(cd ../nmath; $(MAKE) $(@F))

gram.c: $(srcdir)/gram.y
$(YACC) $(srcdir)/gram.y
mv y.tab.c $@
$(YACC) $(YFLAGS) $(srcdir)/gram.y
$(top_srcdir)/tools/move-if-change y.tab.c $(@F)

mostlyclean: clean
clean:
Expand Down
22 changes: 11 additions & 11 deletions src/nmath/Makefile.in
Expand Up @@ -6,14 +6,11 @@ srcdir = @srcdir@
top_srcdir = @top_srcdir@

top_builddir = ../..

include $(top_builddir)/Makeconf
subdir = src/nmath

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
DISTFILES = $(shell cd $(srcdir) && ls Makefile.in *.[cfh])
include $(top_builddir)/Makeconf

SRCS = \
SOURCES = \
mlutils.c \
d1mach.c i1mach.c \
fmax2.c fmin2.c fmod.c fprec.c fround.c ftrunc.c \
Expand Down Expand Up @@ -47,28 +44,31 @@ SRCS = \
ptukey.c qtukey.c \
wilcox.c \
signrank.c
DEPS = $(SRCS:.c=.d)
OBJS = $(SRCS:.c=.o)
DEPENDS = $(SOURCES:.c=.d)
OBJECTS = $(SOURCES:.c=.o)

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
DISTFILES = Makefile.in $(SOURCES)

LIB = libmath.a

all: Makefile Makedeps R

Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(DEPS)
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(DEPENDS)
@cd $(top_builddir) && \
CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \
$(SHELL) ./config.status

Makedeps: Makefile
@cat $(DEPS) >> Makefile
@cat $(DEPENDS) >> Makefile
@touch $@

R: Makefile
@$(MAKE) Makedeps
@$(MAKE) $(LIB)

$(LIB): $(OBJS)
$(AR) cr $(LIB) $(OBJS)
$(LIB): $(OBJECTS)
$(AR) cr $(LIB) $(OBJECTS)
$(RANLIB) $(LIB)

mostlyclean: clean
Expand Down
27 changes: 17 additions & 10 deletions src/scripts/Makefile.in
Expand Up @@ -10,13 +10,15 @@ subdir = src/scripts

include $(top_builddir)/Makeconf

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
DISTFILES = $(shell cd $(srcdir) && ls | sed '/CVS/d')

SRC_SCRIPTS = BATCH Rd2dvi check filename help help.links \
SCRIPTS_S = BATCH Rd2dvi check filename help help.links \
massage-Examples pager
OBJ_SCRIPTS = COMPILE INSTALL REMOVE Rd2contents Rd2txt Rdconv Rdindex \
Rman2Rd SHLIB Sd2Rd build-help fwf2table help.pretty html2dos
SCRIPTS_B_IN = COMPILE.in INSTALL.in REMOVE.in Rd2contents.in Rd2txt.in \
Rdconv.in Rdindex.in Rman2Rd.in SHLIB.in Sd2Rd.in build-help.in \
fwf2table.in help.pretty.in html2dos.in
SCRIPTS_B = $(SCRIPTS_B_IN:.in=)

distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
DISTFILES = Makefile.in $(SCRIPTS_S) $(SCRIPTS_B_IN) R.sh.in

all: Makefile R

Expand All @@ -25,22 +27,27 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \
$(SHELL) ./config.status

R:
R: $(SCRIPTS_B) R.sh
@$(MKINSTALLDIRS) $(top_builddir)/bin
@cat R.sh | \
(cd $(top_builddir); sed "s@R_HOME_DIR*@`pwd`@" > bin/R)
@chmod +x $(top_builddir)/bin/R
@for f in $(SRC_SCRIPTS); do \
@for f in $(SCRIPTS_S); do \
$(INSTALL) $(srcdir)/$$f $(top_builddir)/bin; \
done
@for f in $(OBJ_SCRIPTS); do \
@for f in $(SCRIPTS_B); do \
$(INSTALL) $$f $(top_builddir)/bin; \
done

%: %.in $(top_builddir)/config.status
cd $(top_builddir) && \
CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \
$(SHELL) ./config.status

mostlyclean: clean
clean:
distclean:
@rm -f Makefile R.sh $(OBJ_SCRIPTS)
@rm -f Makefile R.sh $(SCRIPTS_B)
maintainer-clean: distclean

distdir: $(DISTFILES)
Expand Down

0 comments on commit aee39fb

Please sign in to comment.