1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-22 08:08:10 +00:00

Ensure 'make clean' is a safe operation (eg. do not remove output and

session files). Add a 'make distclean' target for removing such files
as well. Closes #1218.
This commit is contained in:
magnum 2017-04-06 11:39:29 +02:00
parent 8caf3ba57f
commit ba0b2ee641
2 changed files with 5 additions and 1 deletions

1
.gitignore vendored
View File

@ -11,6 +11,7 @@ hashcat.dll
*.pot *.pot
*.pid *.pid
*.log *.log
*.out
*.dSYM *.dSYM
kernels/** kernels/**
lib/*.a lib/*.a

View File

@ -276,12 +276,15 @@ WIN_64_OBJS := $(foreach OBJ,$(OBJS_ALL),obj/$(OBJ).WIN.64.o)
default: $(HASHCAT_FRONTEND) default: $(HASHCAT_FRONTEND)
clean: clean:
$(RM) -f obj/*.o obj/lzma_sdk/*.o *.bin *.exe *.so *.dll *.restore *.out *.pid *.log hashcat core $(RM) -f obj/*.o obj/lzma_sdk/*.o *.bin *.exe *.so *.dll *.pid hashcat core
$(RM) -rf *.induct $(RM) -rf *.induct
$(RM) -rf *.outfiles $(RM) -rf *.outfiles
$(RM) -rf *.dSYM $(RM) -rf *.dSYM
$(RM) -rf kernels $(RM) -rf kernels
distclean: clean
$(RM) -f *.restore *.pot *.out *.log
## ##
## Targets: Cross Compilation (for binary release version) ## Targets: Cross Compilation (for binary release version)
## ##