Re: gmake SUCCEEDED

Kurt Stirewalt ([email protected])
Wed, 28 Jun 1995 07:16:26 -0400

>Currently Gatech owns all the Imakefiles, including the one in MMHOME/src.
>Can you please edit it to include the Clients directory.

Could I hold off doing this until you get a version ready for distribution?
Reason being that if I change and distribute it that my build tests will
fail due to not having a directory Clients. I see that you've already
changed the permissions of src/Imakefile and made the change locally.
Will this work for you until we're ready to re-sync?

>Anyway, I edited to Imakefile in ~szekely/TEMP/src to try things out, but had
>no luck. I think I managed to create the Makefile for Clients, and in Clients
>I put one that supposedly created the Makefiles in the sub-directories.

Yeah, that seems to work just fine...

>I wrote the Imakefile for HTML-Gen as you suggested, but I get an error from
>make:
>
>making Makefiles in ./src/Clients...
>rm -f Clients/Makefile.bak
>+ mv -f Clients/Makefile Clients/Makefile.bak
>cd Clients; /local/X11R5/bin/imake -DConstructMFLAGS=0 -DUseInstalled
>-I/home/szekely/TEMP/config -I/local/X11R5/lib/X11/config -DConstructMFLAGS=0
>-DTOPDIR=/home/szekely/TEMP -DCURDIR=./src/Clients; \
>/local/gnu/make-3.73/bin/make --no-keep-going --no-print-directory
>--no-print-directory -- NEW_CURRENT_DIR=./src/Clients MAKEFILE_SUBDIR=Clients
>NEWTOP= UPPREFIX= Makefiles
>Makefile:706: *** missing separator. Stop.
>make[1]: *** [subdirMakefiles] Error 2
>make: *** [Makefiles] Error 2
>isd20 156%

That is a very *interesting* error. It seems that imake at ISI feels the need
to put # line directives in the generated Makefiles for some reason. If you
go look at (now) line 319, you'll see the problem: imake is placing a #line
directive "in the middle" of a statement that is meant to all be on one
line (not the \ at the end of each line). This is causing your error. It's
curious because imake here at Georgia Tech does not introduce these directives.
I imagine that there is a way to turn it off, and I'll go try to find that
today. But I think that your Imakefile should be fine otherwise.

>-----------------
>Here is the Imakefile I wrote:
>
>
>SourceFiles(NullParameter,html-gen.cc)
>MMDependTarget()
>MMProgramTarget(htmlgen,
> $(OBJS),
> NullParameter,
> -lobject_cpp -lamulet -lL -lm -lX11,
> NullParameter)
>AllTarget(htmlgen)
>InstallFiles(htmlgen,$(MMHOME)/bin)

Yeah, that looks right.

-- kurt.