Commit df8bc572 authored by Brian Paul's avatar Brian Paul

Don't use pushd/popd.

parent d6de4d8b
......@@ -7,17 +7,13 @@ SUBDIRS = src progs
default: $(TOP)/configs/current
@for dir in $(SUBDIRS) ; do \
pushd $$dir ; \
make ; \
popd ; \
(cd $$dir ; make) ; \
done
clean:
@for dir in $(SUBDIRS) ; do \
pushd $$dir ; \
make clean; \
popd ; \
(cd $$dir ; make clean) ; \
done
......
......@@ -10,9 +10,7 @@ SUBDIRS = $(PROGRAM_DIRS)
default: $(TOP)/configs/current
@for dir in $(SUBDIRS) ; do \
if [ -d $$dir ] ; then \
pushd $$dir ; \
make ; \
popd ; \
(cd $$dir ; make) ; \
fi \
done
......@@ -20,8 +18,6 @@ default: $(TOP)/configs/current
clean:
@for dir in $(SUBDIRS) ; do \
if [ -d $$dir ] ; then \
pushd $$dir ; \
make clean; \
popd ; \
(cd $$dir ; make clean) ; \
fi \
done
......@@ -13,9 +13,7 @@ default: $(LIB_DIR) subdirs
subdirs:
@for dir in $(SUBDIRS) ; do \
if [ -d $$dir ] ; then \
pushd $$dir ; \
make ; \
popd ; \
(cd $$dir ; make) ; \
fi \
done
......@@ -27,8 +25,6 @@ $(LIB_DIR):
clean:
@for dir in $(SUBDIRS) ; do \
if [ -d $$dir ] ; then \
pushd $$dir ; \
make clean ; \
popd ; \
(cd $$dir ; make clean) ; \
fi \
done
......@@ -10,15 +10,11 @@ SUBDIRS = $(GLU_DIRS)
default: $(TOP)/configs/current
@for dir in $(SUBDIRS) ; do \
pushd $$dir ; \
make ; \
popd ; \
(cd $$dir ; make) ; \
done
clean:
@for dir in $(SUBDIRS) ; do \
pushd $$dir ; \
make clean; \
popd ; \
(cd $$dir ; make clean) ; \
done
......@@ -97,9 +97,7 @@ stand-alone: depend subdirs $(LIB_DIR)/$(GL_LIB_NAME) $(LIB_DIR)/$(OSMESA_LIB_NA
osmesa-only: depend subdirs $(LIB_DIR)/$(OSMESA_LIB_NAME)
subdirs:
@pushd x86 ; \
make ; \
popd
(cd x86 ; make)
# Make the GL library
$(LIB_DIR)/$(GL_LIB_NAME): $(STAND_ALONE_OBJECTS)
......@@ -167,9 +165,7 @@ clean:
-rm -f */*.o
rm -f depend
for dir in $(SUBDIRS) ; do \
pushd $$dir ; \
make clean ; \
popd ; \
(cd $$dir ; make clean) ; \
done
include depend
......@@ -17,15 +17,11 @@ $(LIB_DIR):
subdirs:
@for dir in $(SUBDIRS) ; do \
pushd $$dir ; \
make ; \
popd ; \
(cd $$dir ; make) ; \
done
clean:
@for dir in $(SUBDIRS) ; do \
pushd $$dir ; \
make clean ; \
popd ; \
(cd $$dir ; make clean) ; \
done
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