gerry@TOADWAR.UCAR.EDU (gerry wiener) (03/31/89)
Here is a problem with make3.44 on sun4-os4. There are two makefiles,
titled makefile and in a subdirectory sub1, sub1/makefile. Below gnumake
stands for the obvious. Make stands for sun make.
hail:tdwr:1>make install
for i in sub1; do (cd $i; make install); done
echo "this is done"
this is done
hail:tdwr:2>gnumake install
for i in sub1; do (cd $i; make install); done
make: Fatal error: Unknown option `--'
gnumake: *** Error 1
Here are the files:
# This is a shell archive.
# Remove everything above and including the cut line.
# Then run the rest of the file through sh.
#----cut here-----cut here-----cut here-----cut here----#
#!/bin/sh
# shar: Shell Archiver
# Run the following text with /bin/sh to create:
# makefile
# sub1
# This archive created: Fri Mar 31 10:41:08 1989
cat << \SHAR_EOF > makefile
# Flags passed down to subdirectory makefiles.
MFLAGS=
# Subdirectories to make recursively. Make the libraries first!
SUBDIR= sub1
install: FRC
for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} install); done
FRC:
SHAR_EOF
mkdir sub1
cd sub1
cat << \SHAR_EOF > makefile
install:
echo "this is done"
SHAR_EOF
cd ..
# End of shell archive
exit 0