Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Clean up the clean, distclean makefile stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed May 8, 2011
1 parent db2189f commit e88c63f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
7 changes: 5 additions & 2 deletions Makefile
Expand Up @@ -40,7 +40,7 @@ test/echo.o: test/echo.c test/echo.h
$(CC) $(CFLAGS) -c test/echo.c -o test/echo.o


.PHONY: clean distclean test benchmark
.PHONY: clean clean-platform distclean distclean-platform test benchmark


test: test/run-tests
Expand All @@ -49,5 +49,8 @@ test: test/run-tests
bench: test/run-benchmarks
test/run-benchmarks

clean:
clean: clean-platform
$(RM) -f *.o *.a test/run-tests$(E) test/run-benchmarks$(E)

distclean: distclean-platform
$(RM) -f *.o *.a test/run-tests$(E) test/run-benchmarks$(E)
5 changes: 3 additions & 2 deletions config-mingw.mk
Expand Up @@ -39,5 +39,6 @@ oio.a: oio-win.o
oio-win.o: oio-win.c oio.h oio-win.h
$(CC) $(CFLAGS) -c oio-win.c -o oio-win.o

distclean:
$(RM) -f *.o *.a
distclean-platform:
clean-platform:
;
6 changes: 4 additions & 2 deletions config-unix.mk
Expand Up @@ -42,6 +42,8 @@ ev/ev.o: ev/config.h ev/ev.c
ev/config.h:
cd ev && ./configure

distclean:
$(RM) -f *.o *.a
clean-platform:
$(MAKE) -C ev clean

distclean-platform:
$(MAKE) -C ev distclean

0 comments on commit e88c63f

Please sign in to comment.