[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removing dependencies

From: Bill Moseley
Subject: Re: Removing dependencies
Date: Sun, 6 Apr 2003 14:28:04 -0700 (PDT)

On Sun, 6 Apr 2003, Alexandre Duret-Lutz wrote:

> >>> "Bill" == Bill Moseley <address@hidden> writes:
> [...]
>  >> $(html_DATA): .html-stamp
>  >>         if test -f $@; then :; else rm -f $<; $(MAKE) .html-stamp; fi
>  Bill> Yes, that would be perfect, but I don't think I can
>  Bill> require GNU make.  How non-portable is that?
> It's almost portable, AFAICT.  Replace $< by .html-stamp if
> portability to non-GNU Make matters.  ($@ is fine.)  You should
> also rename .html-stamp to something else if you care about DOS
> filesystems (leading dot is disallowed).

Ok, thanks for the tips.

I'm also finding on non GNU-make (like on BSD) that I cannot build in a
separate build directory -- that I need to build where I untar the source.
Otherwise make thinks the targets do not exist.  I assume that's because
VPATH only applies to source files not targets as well?  Or it my Makefile
that is the problem?

For example, in one I use:

doc_DATA = \
        INSTALL \

INSTALL: $(top_srcdir)/pod/INSTALL.pod
        -rm -f $(top_srcdir)/INSTALL
        -pod2text $(top_srcdir)/pod/INSTALL.pod > $(top_srcdir)/INSTALL

README: $(top_srcdir)/pod/README.pod
        -rm -f $(top_srcdir)/README
        -pod2text $(top_srcdir)/pod/README.pod > $(top_srcdir)/README

So it's looking for README and INSTALL in the build directory where they
are not found.

Here's the from the original posting, if curious:*checkout*/swishe/swish-e/html/


Bill Moseley address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]