Didier Gautheron (dgautheron@magic.fr)
Sat, 09 Jan 1999 18:03:49 +0000
Alexander Bergolth wrote:
>
> Hi!
>
> I have just changed the Makefiles to allow compiling of the htdig-sources
> in seperate build-directories.
>
> You should now be able to configure and compile different
> htdig-versions from the same sources, e.g. my debugging version resides in
> /scratch/leo/htdig-debug
> and I configure it from that directory using
> ../htdig-cvs/htdig3/configure
>
> Maybe there are still some dependencies that are not updated correctly so
> if you have any troubles compiling, you know who is to blame... :)
there's stuff in gnu make to auto build dependencies e.g.:
.DELETE_ON_ERROR: %.d
OBJS = Document.o HTML.o Images.o \
Parsable.o Plaintext.o Postscript.o \
Retriever.o SGMLEntities.o Server.o \
URLRef.o main.o ExternalParser.o PDF.o
include $(patsubst %.o,%.d,$(OBJS))
%.d: %.cc
rm -f $*.d
echo -n "$@ " >$@
$(CXX) $(ALL_CXXFLAGS) -M $< >> $@
The .d files will be check, rebuild and 'reincluded' when needed, and
you don't have to care about 'make depend' anymore.
Caveat: it's only gnu make
Warning: there're quirks in the make.info file the :
%.d: %.c
$(SHELL) -ec '$(CC) -M $(CPPFLAGS) $< \
| sed '\''s/$*\\.o[ :]*/& $@/g'\'' > $@'
stuff can produce erroneous dependencies if $(CC) failed.
Didier
This archive was generated by hypermail 2.0b3 on Sun Jan 10 1999 - 16:36:31 PST