Problems with Makefile executing "make" in sub directories
Joseph E Poplawski
jpoplaws at telesci.UUCP
Fri Jan 19 18:01:32 AEST 1990
Hello. I am trying to write a program that keeps the different executables in
three seperate directories. At the top level directory, I have a Makefile that
in turn cd's to the appropriate directory and then executes a make in that
directory. Actually, that is what it is supposed to do, but the way I have it
setup doesn't work. I have RTFM and tried some different methods but to no
avail. No matter what, for the one directory, it always says it is up to date
even though there are NO files in the directory whatsoever, then for the other
executable directory, it stops with an "error code 1". This and the other
errors are shown in the script included below my signature.
If you have any ideas about what is happening, PLEASE let me know via e-mail
as soon as possible. My system is an 80386 running UNIX V.3 (ISC 1.0.5).
Thanks in advance.
-Jo
--
Joseph E Poplawski (Jo)
Home: 5 Sussex Drive, Willingboro, NJ 08046-1407 Phone: +1 609 835-2846
UUCP: ...{rutgers!rochester!moscom,princeton,pyrnj}!telesci!fantasci!jep
jep at fantasci.uucp jpoplaws at telesci.uucp
Script started Thu Jan 18 22:50:39 1990
$ cat Makefile
# Makefile
CC = /bin/cc
CP = /bin/cp
RM = /bin/rm -f
SHELL = /bin/ksh
qccs: lib
cd \
qccs
$(MAKE)
qmas:
( cd qmas ; make )
lib:
( cd libs ; make )
$ make lib
( cd libs ; make )
*** Error code 1
Stop.
$ ls -l libs
total 9
-rw-r----- 1 jep softdev 1187 Jan 18 04:32 Makefile
-rw-r----- 1 jep softdev 909 Jan 18 03:53 keyret.c
-rw-r----- 1 jep softdev 750 Jan 17 23:24 random.c
-rw-r----- 1 jep softdev 830 Jan 17 23:25 sort.c
$ make qccs
( cd libs ; make )
*** Error code 1
Stop.
$ ls -l qccs
[it lists the Makefile and all the *.c files but there is no executable or
.o files whatsoever!]
$ make qmas
`qmas' is up to date.
$ ls -l qmas
total 0
Script done Thu Jan 18 22:51:40 1990
More information about the Comp.lang.c
mailing list