Commit 46727c74 authored by Brian Paul's avatar Brian Paul

Tweaks for make clean / realclean.

parent 7a5eb9a7
...@@ -21,8 +21,9 @@ clean: ...@@ -21,8 +21,9 @@ clean:
done done
realclean: clean realclean:
#-rm -rf $(LIB_DIR) touch $(TOP)/configs/current
make clean
-rm -rf lib* -rm -rf lib*
-rm -f $(TOP)/configs/current -rm -f $(TOP)/configs/current
......
...@@ -73,9 +73,6 @@ default: readtex.c readtex.h $(PROGS) ...@@ -73,9 +73,6 @@ default: readtex.c readtex.h $(PROGS)
clean: clean:
-rm -f *.o *~
realclean:
-rm -f $(PROGS) -rm -f $(PROGS)
-rm -f *.o *~ -rm -f *.o *~
-rm -f readtex.[ch] -rm -f readtex.[ch]
......
...@@ -32,10 +32,8 @@ PROGS = aaindex aapoly aargb accanti accpersp alpha alpha3D anti \ ...@@ -32,10 +32,8 @@ PROGS = aaindex aapoly aargb accanti accpersp alpha alpha3D anti \
default: $(PROGS) default: $(PROGS)
clean:
-rm -f *.o *~
realclean: clean:
-rm -f $(PROGS) -rm -f $(PROGS)
-rm -f *.o *~ -rm -f *.o *~
...@@ -26,9 +26,7 @@ PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth eval fog \ ...@@ -26,9 +26,7 @@ PROGS = accum bitmap1 bitmap2 blendeq blendxor copy cursor depth eval fog \
default: $(PROGS) default: $(PROGS)
clean:
-rm -f *.o *~
realclean: clean:
-rm -f $(PROGS) -rm -f $(PROGS)
-rm -f *.o *~ -rm -f *.o *~
...@@ -6,7 +6,7 @@ include $(TOP)/configs/current ...@@ -6,7 +6,7 @@ include $(TOP)/configs/current
INCDIR = $(TOP)/include INCDIR = $(TOP)/include
LIBS = -L$(LIB_DIR) $(APP_LIB_DEPS) LIBS = $(APP_LIB_DEPS)
LIB_DEP = $(LIB_DIR)/$(GL_LIB) $(LIB_DIR)/$(GLU_LIB) LIB_DEP = $(LIB_DIR)/$(GL_LIB) $(LIB_DIR)/$(GLU_LIB)
...@@ -44,9 +44,6 @@ default: $(PROGS) ...@@ -44,9 +44,6 @@ default: $(PROGS)
clean: clean:
-rm -f *.o *~
realclean:
-rm -f $(PROGS) -rm -f $(PROGS)
-rm -f *.o *~ -rm -f *.o *~
......
...@@ -27,8 +27,10 @@ default: $(LIB_DIR)/$(GLW_LIB_NAME) ...@@ -27,8 +27,10 @@ default: $(LIB_DIR)/$(GLW_LIB_NAME)
clean: clean:
-rm depend
-rm -f *.o *~ -rm -f *.o *~
# Make the library # Make the library
$(LIB_DIR)/$(GLW_LIB_NAME): $(OBJECTS) $(LIB_DIR)/$(GLW_LIB_NAME): $(OBJECTS)
$(TOP)/bin/mklib -o $(GLW_LIB) -major $(MAJOR) -minor $(MINOR) \ $(TOP)/bin/mklib -o $(GLW_LIB) -major $(MAJOR) -minor $(MINOR) \
......
...@@ -165,6 +165,7 @@ tags: ...@@ -165,6 +165,7 @@ tags:
clean: clean:
-rm -f */*.o -rm -f */*.o
rm -f depend
for dir in $(SUBDIRS) ; do \ for dir in $(SUBDIRS) ; do \
pushd $$dir ; \ pushd $$dir ; \
make clean ; \ make clean ; \
......
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