From 0aef1f70095e8ee52e25e8f53ef20a0738be02df Mon Sep 17 00:00:00 2001 From: Peter Colberg Date: Fri, 13 Nov 2015 13:43:44 -0500 Subject: [PATCH] Clean up and test make clean --- .travis.sh | 2 ++ Makefile | 11 +++-------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/.travis.sh b/.travis.sh index ed014c7..12296d9 100755 --- a/.travis.sh +++ b/.travis.sh @@ -22,3 +22,5 @@ arm32) esac $LOADER make check + +make clean && git status --ignored --porcelain && test -z "$(git status --ignored --porcelain)" diff --git a/Makefile b/Makefile index b26d4f4..fd4c532 100644 --- a/Makefile +++ b/Makefile @@ -51,14 +51,9 @@ test/test-float: libopenlibm.$(SHLIB_EXT) $(MAKE) -C test test-float clean: - @for dir in $(SUBDIRS) .; do \ - rm -fr $$dir/*.o $$dir/*.a $$dir/*.$(SHLIB_EXT)*; \ - done - @rm -f test/test-double test/test-float - -distclean: - -rm -f $(OBJS) *.a *.$(SHLIB_EXT) libopenlibm.* - -$(MAKE) -C test clean + rm -f amd64/*.o arm/*.o bsdsrc/*.o i387/*.o ld128/*.o ld80/*.o src/*.o + rm -f libopenlibm.a libopenlibm.$(SHLIB_EXT)* + $(MAKE) -C test clean openlibm.pc: openlibm.pc.in Make.inc Makefile echo "prefix=${prefix}" > openlibm.pc