maintainer mode
Andrew Tridgell
tridge at samba.anu.edu.au
Fri Oct 30 09:48:42 GMT 1998
How many people use the maintainer mode in the new Makefile? I'm
wondering if we can do without it.
The rule for creating object files is now:
.c.o: @MAINT@ .deps/.dummy
@if (: >> $@ || : > $@) >/dev/null 2>&1; then rm -f $@; else \
dir=`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` $(MAKEDIR); fi
@MAINT@@if (: >> .deps/$@ || : > .deps/$@) >/dev/null 2>&1; then :; \
@MAINT@ else dir=.deps/`echo $@ | sed 's,/[^/]*$$,,;s,^$$,.,'` \
@MAINT@ $(MAKEDIR); fi; rm -f .deps/$@ .deps/$@d
@echo Compiling $*.c
@$(CC) -I. -I$(srcdir) $(FLAGS) -c $< -o $@ \
@MAINT@ -Wp,-MD,.deps/$@ && \
@MAINT at sed 's|^'`echo $@ | sed 's,.*/,,'`':|$@:|' \
@MAINT@ <.deps/$@ >.deps/$@d && \
@MAINT at rm -f .deps/$@ && : >.deps/.stamp
that seems ridiculous. And right now it's broken and is dumping lots
of junk on the screen while compiling.
Maybe we should just go for a script called something like
script/compile and be done with it? Or if it isn't being used then
maybe we should get rid of it completely. I don't use it myself.
I like Makefiles to be readable. the Samba one is starting to resemble
line noise :-)
More information about the samba-technical
mailing list