All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <j.w.r.degoede@hhs.nl>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] Taking a closer look at lm-sensors,
Date: Thu, 12 Apr 2007 10:07:51 +0000	[thread overview]
Message-ID: <461E04F7.4030903@hhs.nl> (raw)
In-Reply-To: <20070412091354.10f4bef7@hyperion.delvare>

Jean Delvare wrote:
> Hi Hans,
> 
> I would need to be convinced that this needs to be fixed first. I wrote
> a minimal Makefile for testing purposes as follows:
> 
> --- 8< ---
> PREFIX := /usr/local
> BINDIR := $(PREFIX)/bin
> 
> all :
> 	@echo $(PREFIX)
> 	@echo $(BINDIR)
> --- 8< ---
> 
> khali@hyperion:~/tmp> make
> /usr/local
> /usr/local/bin
> khali@hyperion:~/tmp> make PREFIX=/usr
> /usr
> /usr/bin
> khali@hyperion:~/tmp>
> 
> This is with GNU make 3.81, but I also tested with 3.80 and 3.78.1 with
> the same result. So ":=" seems to allow variable value override from
> the command line just fine, and I fail to see why a distribution would
> need to patch our Makefile. In fact I just tried a "make PREFIX=/foo
> user_install" and it installed lm-sensors in /foo just fine. So what's
> the problem exactly?
> 
> Checking the Slackware and openSuse lm-sensors package sources, I see
> that they do indeed patch our Makefile to change the prefix and other
> variables. But given my tests above, this seems to be by choice, and I
> doubt they would do it any differently if we were using "=" instead of
> ":=" in the Makefile.
> 

Hmm,

You are right, still I seem to remember patching Makefiles myself because of := 
causing passing stuff on the cmdline to not work. Maybe this has changed and 
the patched used by opensuse / slackware (and Fedora) were there because this 
didn't use to work??

Anyways overriding them from the cmdline seems to work fine now a days, or 
maybe the replacing of := with = in other cases was just plastering over other 
issues.

Regards,

Hans


_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

  reply	other threads:[~2007-04-12 10:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-12  7:13 [lm-sensors] Taking a closer look at lm-sensors, Jean Delvare
2007-04-12 10:07 ` Hans de Goede [this message]
2007-04-13  6:51 ` Jean Delvare

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=461E04F7.4030903@hhs.nl \
    --to=j.w.r.degoede@hhs.nl \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.