[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 Makefile.am I use:
doc_DATA = \
INSTALL \
README
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 Makefile.am from the original posting, if curious:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/swishe/swish-e/html/Makefile.am?rev=HEAD&content-type=text/plain
Thanks!
--
Bill Moseley address@hidden
- Removing dependencies, Bill Moseley, 2003/04/04
- Re: Removing dependencies, Raja R Harinath, 2003/04/04
- Re: Removing dependencies, Raja R Harinath, 2003/04/04
- Re: Removing dependencies, Bill Moseley, 2003/04/04
- Re: Removing dependencies, Raja R Harinath, 2003/04/04
- Re: Removing dependencies, Alexandre Duret-Lutz, 2003/04/06
- Re: Removing dependencies,
Bill Moseley <=
- Re: Removing dependencies, Bob Proulx, 2003/04/07
- Re: Removing dependencies, Bill Moseley, 2003/04/07
- Re: Removing dependencies, Steve M. Robbins, 2003/04/07
- Re: Removing dependencies, Alexandre Duret-Lutz, 2003/04/07