rules.mk: Add rules depend and depclean

This commit is contained in:
Jan Lindemann 2006-01-20 17:46:55 +00:00 committed by Jan Lindemann
commit ea6727a129

View file

@ -184,8 +184,10 @@ else
install_profile_path: $(INSTALLED_PROFILE_PATH_SCRIPT) install_profile_path: $(INSTALLED_PROFILE_PATH_SCRIPT)
endif endif
depend: depend.mk: $(SRC_ALL_CPP)
makedepend -- $(CPPFLAGS) $(DEPEND_CPPFLAGS) -- $(wildcard *.cpp *.h) > $@ && makedepend -f depend.mk -- $(CPPFLAGS) $(DEPEND_CPPFLAGS) -- $(SRC_ALL_CPP)
depend: depend.mk
checkroot: checkroot:
@if [ "$(CHECK_ROOT)" = true -o "$(CHECK_ROOT)" = TRUE ] ; then \ @if [ "$(CHECK_ROOT)" = true -o "$(CHECK_ROOT)" = TRUE ] ; then \
@ -209,8 +211,11 @@ tmpclean:
objclean: objclean:
rm -rf core core.* .*.o *.o *.a *.so *.so.* rm -rf core core.* .*.o *.o *.a *.so *.so.*
depclean:
rm -f depend.mk *.bak
mocclean: mocclean:
rm -rf $(MOC_CPP) rm -rf moc_*
uicclean: uicclean:
rm -rf $(UIC_CPP) $(UIC_H) rm -rf $(UIC_CPP) $(UIC_H)