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.
| |