This thread is locked.Only browsing is available.
Top Page > Browsing
makefile: clean tag bug
Date: 2007/05/28 10:42
Name: Rob


Hi,

The makefile has following 'clean' tag:

clean: $(PROG) $(OBJS)
rm $(PROG) $(OBJS)


But this is annoying, as it always first will try to build
everything, before doing the clean up. That's not what it
is supposed to do. Rather use:

clean:
-rm -f $(PROG) $(OBJS)

This will silently remove the executable and objectfiles,
without building anything.

Cheers,
Rob.
メンテ
Page: [1]

Re: makefile: clean tag bug ( No.1 )
Date: 2007/05/28 17:34
Name: T.Ozaki

Hi,

Thank you for your suggestion.

Regards,

TO
メンテ

Page: [1]