aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2003-10-03 14:03:14 +0000
committerBrian Paul <[email protected]>2003-10-03 14:03:14 +0000
commit5fd77da4f691ee7ace6dfa9d2ff49535899f895d (patch)
treec52e3f60e727159b9c70cca887f5b9b181e8327d /src
parent7d8eb0604ab8b59bea5977741729e719f7327363 (diff)
improved 'clean' targets (Otto Solares)
Diffstat (limited to 'src')
-rw-r--r--src/glu/mesa/Makefile.X112
-rw-r--r--src/glu/mini/Makefile.X114
-rw-r--r--src/glu/sgi/Makefile.X116
-rw-r--r--src/glut/mini/Makefile.X116
-rw-r--r--src/glw/Makefile.X112
-rw-r--r--src/glx/mini/Makefile.X113
-rw-r--r--src/mesa/Makefile.X114
-rw-r--r--src/mesa/drivers/dri/r200/Makefile.X113
8 files changed, 16 insertions, 14 deletions
diff --git a/src/glu/mesa/Makefile.X11 b/src/glu/mesa/Makefile.X11
index b50db58c36f..2265620fe6b 100644
--- a/src/glu/mesa/Makefile.X11
+++ b/src/glu/mesa/Makefile.X11
@@ -34,7 +34,7 @@ default:
@echo "Specify a target configuration"
clean:
- -rm *.o *~
+ -rm -f *.o *~
targets: $(LIBDIR)/$(GLU_LIB)
diff --git a/src/glu/mini/Makefile.X11 b/src/glu/mini/Makefile.X11
index d0ef2e50f06..4462d562612 100644
--- a/src/glu/mini/Makefile.X11
+++ b/src/glu/mini/Makefile.X11
@@ -39,7 +39,7 @@ targets: depend libGLU.so.1.1 install
libGLU.so.1.1: $(OBJS) Makefile.X11
gcc -shared -Wl,-soname,libGLU.so -Wl,-Bsymbolic $(OBJS) $(LIBS) -o $@
-install:
+install: libGLU.so.1.1
rm -f $(TOP)/lib/libGLU.so*
install -D libGLU.so.1.1 $(TOP)/lib/libGLU.so.1.1
ln -s libGLU.so.1.1 $(TOP)/lib/libGLU.so.1
@@ -58,7 +58,7 @@ tags:
# Remove .o and backup files
clean:
- -rm -f *.o *~ *.o *~ *.so
+ -rm -f *.o *~ *.o *~ *.so libGLU.so.1.1
include $(TOP)/Make-config
diff --git a/src/glu/sgi/Makefile.X11 b/src/glu/sgi/Makefile.X11
index 76befaa0fa4..7202aa84ffb 100644
--- a/src/glu/sgi/Makefile.X11
+++ b/src/glu/sgi/Makefile.X11
@@ -131,9 +131,9 @@ default:
@echo "Specify a target configuration"
clean:
- -rm *.o */*.o */*/*.o
- -rm *.lo */*.lo */*/*.lo
- -rm *.la */*.la */*/*.la
+ -rm -f *.o */*.o */*/*.o
+ -rm -f *.lo */*.lo */*/*.lo
+ -rm -f *.la */*.la */*/*.la
targets: $(LIBDIR)/$(GLU_LIB)
diff --git a/src/glut/mini/Makefile.X11 b/src/glut/mini/Makefile.X11
index 097a665e4ec..bbdc6a690ce 100644
--- a/src/glut/mini/Makefile.X11
+++ b/src/glut/mini/Makefile.X11
@@ -52,7 +52,7 @@ targets: depend libglut.so.3.7 install
libglut.so.3.7: $(OBJS) Makefile.X11
gcc -shared -Wl,-soname,libglut.so -Wl,-Bsymbolic $(OBJS) $(LIBS) -o $@
-install:
+install: libglut.so.3.7
rm -f $(TOP)/lib/libglut.so*
install -D libglut.so.3.7 $(TOP)/lib/libglut.so.3.7
ln -s libglut.so.3.7 $(TOP)/lib/libglut.so.3
@@ -70,8 +70,8 @@ tags:
# Remove .o and backup files
-clean:
- -rm -f *.o *~ *.o *~ *.so
+clean: depend
+ -rm -f *.o *~ *.o *~ *.so libglut.so.3.7
include $(TOP)/Make-config
diff --git a/src/glw/Makefile.X11 b/src/glw/Makefile.X11
index 90b7f9d35ff..888aebd52cd 100644
--- a/src/glw/Makefile.X11
+++ b/src/glw/Makefile.X11
@@ -38,7 +38,7 @@ default:
@echo "Specify a target configuration"
clean:
- -rm *.o *~
+ -rm -f *.o *~
targets: $(LIBDIR)/$(GLW_LIB) message
diff --git a/src/glx/mini/Makefile.X11 b/src/glx/mini/Makefile.X11
index 2e818f0b017..115854393a7 100644
--- a/src/glx/mini/Makefile.X11
+++ b/src/glx/mini/Makefile.X11
@@ -71,7 +71,8 @@ tags:
# Remove .o and backup files
clean:
-rm -f drmtest $(TOP)/lib/libGL.so*
- -rm -f */*.o */*~ */*.o */*~
+ -rm -f libGL.so*
+ -rm -f *.o *~
include $(TOP)/Make-config
diff --git a/src/mesa/Makefile.X11 b/src/mesa/Makefile.X11
index 12790a56b74..373608a325d 100644
--- a/src/mesa/Makefile.X11
+++ b/src/mesa/Makefile.X11
@@ -348,9 +348,9 @@ tags:
# Remove .o and backup files
clean:
- -rm *.a
+ -rm -f *.a
-rm -f */*.o */*~ */*.o */*~
- -rm -f drivers/*/*.o
+ -rm -f drivers/*/*.o drivers/*/*/*.o
include $(TOP)/Make-config
diff --git a/src/mesa/drivers/dri/r200/Makefile.X11 b/src/mesa/drivers/dri/r200/Makefile.X11
index 2c73f4d5212..62f4b4b94c1 100644
--- a/src/mesa/drivers/dri/r200/Makefile.X11
+++ b/src/mesa/drivers/dri/r200/Makefile.X11
@@ -1,4 +1,4 @@
-# $Id: Makefile.X11,v 1.3 2003/09/30 10:29:15 alanh Exp $
+# $Id: Makefile.X11,v 1.4 2003/10/03 14:03:18 brianp Exp $
# Mesa 3-D graphics library
# Version: 5.0
@@ -133,6 +133,7 @@ tags:
# Remove .o and backup files
clean:
-rm -f *.o */*.o *~ *.o *~ *.so server/*.o
+ -rm -f $(SYMLINKS)
include $(TOP)/Make-config