Commit c5e2b850 authored by Dan Nicholson's avatar Dan Nicholson

Always cleanup the makedepend backup files

Consistently cleanup the depend.bak files created by makedepend. Also,
realclean has been changed to use a single find command, which speeds it
up considerably.
parent cba14d85
...@@ -31,10 +31,8 @@ realclean: ...@@ -31,10 +31,8 @@ realclean:
-rm -f $(TOP)/configs/current -rm -f $(TOP)/configs/current
-rm -f $(TOP)/configs/autoconf -rm -f $(TOP)/configs/autoconf
-rm -rf autom4te.cache -rm -rf autom4te.cache
-rm -f `find . -name \*.o` -find . '(' -name '*.o' -o -name '*.a' -o -name '*.so' -o \
-rm -f `find . -name \*.a` -name depend -o -name depend.bak ')' -exec rm -f '{}' ';'
-rm -f `find . -name \*.so`
-rm -f `find . -name depend`
......
...@@ -80,7 +80,7 @@ tags: ...@@ -80,7 +80,7 @@ tags:
# Remove .o and backup files # Remove .o and backup files
clean: depend clean: depend
-rm -f depend -rm -f depend depend.bak
-rm -f *.o *~ *.o *~ *.so libglut.so.3.7 -rm -f *.o *~ *.o *~ *.so libglut.so.3.7
include depend include depend
...@@ -87,7 +87,7 @@ tags: ...@@ -87,7 +87,7 @@ tags:
# Remove .o and backup files # Remove .o and backup files
clean: depend clean: depend
-rm -f depend -rm -f depend depend.bak
-rm -f *.o *~ *.o *~ *.so libglut.so.3.7 -rm -f *.o *~ *.o *~ *.so libglut.so.3.7
include depend include depend
...@@ -119,7 +119,7 @@ clean: ...@@ -119,7 +119,7 @@ clean:
-rm -f *.lo -rm -f *.lo
-rm -f *.la -rm -f *.la
-rm -rf .libs -rm -rf .libs
-rm -rf depend depend.bak -rm -f depend depend.bak
depend: $(SOURCES) depend: $(SOURCES)
......
...@@ -91,7 +91,7 @@ install: glut.pc ...@@ -91,7 +91,7 @@ install: glut.pc
# Remove .o and backup files # Remove .o and backup files
clean: depend clean: depend
-rm -f depend -rm -f depend depend.bak
-rm -f *.o *~ *.o *~ *.so libglut.so.3.7 -rm -f *.o *~ *.o *~ *.so libglut.so.3.7
include depend include depend
...@@ -42,7 +42,7 @@ install: glw.pc ...@@ -42,7 +42,7 @@ install: glw.pc
$(INSTALL) -m 644 glw.pc $(DESTDIR)$(INSTALL_DIR)/$(LIB_DIR)/pkgconfig $(INSTALL) -m 644 glw.pc $(DESTDIR)$(INSTALL_DIR)/$(LIB_DIR)/pkgconfig
clean: clean:
-rm depend depend.bak -rm -f depend depend.bak
-rm -f *.o *~ -rm -f *.o *~
......
...@@ -83,6 +83,6 @@ install: ...@@ -83,6 +83,6 @@ install:
clean: clean:
-rm -f drmtest $(TOP)/$(LIB_DIR)/libGL.so* -rm -f drmtest $(TOP)/$(LIB_DIR)/libGL.so*
-rm -f *.o *~ -rm -f *.o *~
-rm -f depend -rm -f depend depend.bak
include depend include depend
...@@ -91,6 +91,6 @@ install: $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) ...@@ -91,6 +91,6 @@ install: $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME)
clean: clean:
-rm -f $(TOP)/$(LIB_DIR)/libGL.so* -rm -f $(TOP)/$(LIB_DIR)/libGL.so*
-rm -f *.o *~ -rm -f *.o *~
-rm -f depend -rm -f depend depend.bak
-include depend -include depend
...@@ -191,6 +191,6 @@ depend: $(DRIVER_SOURCES) $(GLU_SOURCES) ...@@ -191,6 +191,6 @@ depend: $(DRIVER_SOURCES) $(GLU_SOURCES)
$(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(DRIVER_SOURCES) $(GLU_SOURCES) > /dev/null $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(DRIVER_SOURCES) $(GLU_SOURCES) > /dev/null
clean: clean:
rm -f depend $(OBJECTS) -rm -f depend depend.bak $(OBJECTS)
include depend include depend
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment