Subject: elm problems

From: Dale Scheetz <[email-masked]>
Date: Fri, 2 Aug 1996 14:16:01 -0400 (EDT)

I just tried to build elm from the debian source package with the thought
that I might be able to maintain it. So far the verdict is not in.
The build target in debian.rules is really very simple:

	make
	make documentation
	touch build

However, if I try "debian.rules build" I get:

make
make[1]: Entering directory `/Debian/pkgwork/elm/elm-2.4pl25'
cd lib; /usr/bin/pmake  -w all
/usr/bin/pmake: illegal option -- w
usage: make [-eiknqrst] [-D variable] [-d flags] [-f makefile ]
            [-I directory] [-j max_jobs] [variable=value]
make[1]: *** [all] Error 2
make[1]: Leaving directory `/Debian/pkgwork/elm/elm-2.4pl25'
make: *** [build] Error 2

When I enter the commands by hand, at the prompt everything works fine! In
both cases the command issued is the same but execution from the prompt
looks like:

cd lib; /usr/bin/pmake  - all

and everything runs fine... :-S

Any pointers would be appreciated,

Dwarf

------------                                          --------------

aka   Dale Scheetz                   Phone:   1 (904) 877-0257
      Flexible Software              Fax:     NONE 
      Black Creek Critters           e-mail:  [email-masked]

------------ If you don't see what you want, just ask --------------

---

From: Guy Maor <[email-masked]>
Date: Sun, 4 Aug 1996 00:51:35 -0500 (CDT)

> cd lib; /usr/bin/pmake  - all
                           ^ (no w)

Was that a typo on your part?

Guy

---

From: Dale Scheetz <[email-masked]>
Date: Sun, 4 Aug 1996 13:39:06 -0400 (EDT)

> Was that a typo on your part?
No! Not a typo. This is the only difference between what gets executed
when debian.rules calls for a make, and when I call for the same make.

The line in the Makefile is:

	cd lib; $(MAKE) $(MJ) -(MAKEFLAGS) all

There is no definition of MAKEFLAGS in debian.rules, or in the Makefile.
Does the shell set it when debian.rules runs?

confused,

Dwarf

------------ If you don't see what you want, just ask --------------

---

From: Miquel van Smoorenburg <[email-masked]>
Date: Mon, 5 Aug 1996 09:42:18 +0200 (MET DST)

> 	cd lib; $(MAKE) $(MJ) -(MAKEFLAGS) all
                               ^
Could it be that there is a `$' missing there just before the `(' ?

> Does the shell set it when debian.rules runs?

Dunno..

Mike.
-- 
  Miquel van    | Cistron Internet Services   --    Alphen aan den Rijn.
  Smoorenburg,  | mailto:[email-masked]          http://www.cistron.nl/
[email-masked] | Tel: +31-172-419445 (Voice) 430979 (Fax) 442580 (Data)

---

From: Dale Scheetz <[email-masked]>
Date: Mon, 5 Aug 1996 09:03:58 -0400 (EDT)

> Could it be that there is a `$' missing there just before the `(' ?
Nope, that's just a typo on my part ;-)

Dwarf

------------ If you don't see what you want, just ask --------------

---

From: [email-masked] (Kai Henningsen)
Date: 08 Aug 1996 12:25:00 +0200

> > Does the shell set it when debian.rules runs?

Doesn't make set that one?

MfG Kai

---

From: Dale Scheetz <[email-masked]>
Date: Thu, 8 Aug 1996 19:04:54 -0400 (EDT)

> Doesn't make set that one?
Well, the question is, why does it set the value to 'w' when debian.rules
calls the make, but not when I call make from the prompt?

TIA,

Dwarf

------------ If you don't see what you want, just ask --------------

---

From: Mark Eichin <[email-masked]>
Date: 09 Aug 1996 12:10:19 -0400

Because it's a subprocess of another make.  Like the doc says:

>   Normally, you do not need to specify this option because `make' does
>it for you: `-w' is turned on automatically when you use the `-C'
>option, and in sub-`make's.  `make' will not automatically turn on `-w'
>if you also use `-s', which says to be silent, or if you use
>`--no-print-directory' to explicitly disable it.

Also, if you insist on passing the flags on the make command line, use
MFLAGS, it works that way -- MAKEFLAGS is passed through the
environment already, so using -$(MAKEFLAGS) is (1) redundant (2) wrong
if there are no options already given...

---

From: Dale Scheetz <[email-masked]>
Date: Tue, 13 Aug 1996 20:48:11 -0400 (EDT)

> >`--no-print-directory' to explicitly disable it.

This is exactly what I needed to know. What docs? (I read the man page)

> if there are no options already given...
I believe the make file comes with the upstream source. I can, of course,
modify it.

Thanks for all the help guys, I think I can take it from here ;-)

Dwarf

------------ If you don't see what you want, just ask --------------

---

From: Mark Eichin <[email-masked]>
Date: 13 Aug 1996 20:53:51 -0400

> This is exactly what I needed to know. What docs? (I read the man page)

"info make". The texinfo docs in a GNU package are *always* at least
as good as the man page, and almost always significantly more detailed.