Re: [dwm] Fwd: Auto-discard notification

From: Joey <wm_AT_eachmapinject.com>
Date: Sun, 12 Nov 2006 13:35:19 +0000

How do you guys manage with changing the config.h, do you just keep the
source where its going to be installed and modify it there?
At the moment, mine is on my desktop so its easy to configure, but I would
like to move it.

joey
http://www.eachmapinject.com

On 11/12/06, Sander van Dijk <a.h.vandijk_AT_gmail.com> wrote:
>
> On 11/11/06, Anselm R. Garbe <arg_AT_suckless.org> wrote:
> > ----- Forwarded message from dwm-bounces_AT_suckless.org -----
> >
> > Date: Sat, 11 Nov 2006 11:52:32 +0100
> > From: dwm-bounces_AT_suckless.org
> > To: dwm-owner_AT_suckless.org
> > Subject: Auto-discard notification
> >
> > The attached message has been automatically discarded.
> > Date: Sat, 11 Nov 2006 10:52:31 +0000
> > From: Salva Peiró <saoret.one_AT_gmail.com>
> > To: dwm_AT_suckless.org
> > Subject: a small improvement
> >
> > Hi,
> > this is a silly thing, but i thought it was worth mentioning:
> >
> > diff -r a22a70174d44 Makefile
> > --- a/Makefile Wed Nov 8 16:16:38 2006
> > +++ b/Makefile Sat Nov 11 11:30:06 2006
> > @@ -21,9 +21,9 @@
> >
> > ${OBJ}: dwm.h config.h config.mk
> >
> > -config.h:
> > - @echo creating $@ from config.default.h
> > - @cp config.default.h $@
> > +config.h: config.gmt.h
> > + @echo creating $@ from $<
> > + @cp $< $@
> >
> > dwm: ${OBJ}
> > @echo LD $@
> >
> > I would do the creation of the config.h header this way, because
> > i usually store my config in a separate (config.gmt.h) file, and when
> > a change is done on default config.h's provided i take a look at them
> > and merge changes on my own config, this way just after having modified
> > the config.gmt.h issuing `make' updates config.h and builds an up to
> date
> > dwm.
>
> I don't think that's a good idea. The reason config.h has no
> dependencies is that it should *never* be overwritten if it already
> exists. The idea behind the current structure was to allow people to
> keep their custom configuration in config.h, guaranteeing that it'll
> never be overwritten by the build, while still making a simple 'make
> install' work even when no custom config.h is present (by creating one
> from the default). The most important part here though was that
> config.h should *always* remain intact if it already exists. This has
> been discussed at quite some length a couple of months ago (arg: maybe
> it's a good idea to make some kind of FAQ about such design
> decisions?).
>
> Greets, Sander.
>
>
Received on Sun Nov 12 2006 - 14:35:21 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:32:28 UTC