Skip to content

Commit

Permalink
buildsys: let 'make clean' do more
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Oct 29, 2020
1 parent c0ddb96 commit 16daee7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Makefile.rules
Expand Up @@ -448,20 +448,21 @@ etags:
########################################################################
distclean: clean
rm -f config.log config.status libtool GNUmakefile configure
rm -f bin/gap.sh sysinfo.gap*
rm -f doc/make_doc
rm -rf dev/log
rm -rf tags
rm -rf TAGS
rmdir bin cnf dev doc src 2>/dev/null || : # remove dirs if they are now empty

clean:
rm -rf bin/$(GAPARCH)
rm -rf build
rm -rf extern/build extern/install
rm -f bin/gap.sh sysinfo.gap*
rm -f gap$(EXEEXT) gac ffgen
rm -f libgap.la
rm -f doc/wsp.g
rm -f cnf/GAP-{CFLAGS,CPPFLAGS,CXXFLAGS,LDFLAGS,LIBS,OBJS}
rmdir bin cnf dev doc extern src 2>/dev/null || : # remove dirs if they are now empty

.PHONY: clean distclean

Expand Down Expand Up @@ -699,11 +700,6 @@ ifeq ($(HPCGAP),yes)
$(SOURCES): $(EXTERN_FILES)
endif

distclean: distclean-extern
distclean-extern:
rm -rf extern/build
rm -rf extern/install


# regenerate sysinfo.gap if necessary
define sysinfo_gap
Expand Down

0 comments on commit 16daee7

Please sign in to comment.