mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-22 08:08:10 +00:00
Promote tools/*2hashcat.p[ly] to be installed alongside hashcat
These are small, useful, and have unique names; it should simplify scripts, docs and HOWTOs to have them in $PATH.
This commit is contained in:
parent
aca82314be
commit
12d9d4faea
19
src/Makefile
19
src/Makefile
@ -454,6 +454,13 @@ WIN_OBJS += $(foreach OBJ,$(OBJS_UNRAR),obj/$(OBJ).UNRAR.WIN.o)
|
||||
endif
|
||||
endif
|
||||
|
||||
##
|
||||
## Tools
|
||||
##
|
||||
|
||||
TOOLS += $(wildcard tools/*hashcat.pl)
|
||||
TOOLS += $(wildcard tools/*hashcat.py)
|
||||
|
||||
##
|
||||
## Targets: Native Compilation
|
||||
##
|
||||
@ -511,9 +518,9 @@ endif
|
||||
|
||||
.PHONY: install
|
||||
ifeq ($(SHARED),1)
|
||||
install: install_docs install_shared install_library install_library_dev install_tunings install_kernels install_modules install_hashcat
|
||||
install: install_docs install_shared install_tools install_library install_library_dev install_tunings install_kernels install_modules install_hashcat
|
||||
else
|
||||
install: install_docs install_shared install_tunings install_kernels install_modules install_hashcat
|
||||
install: install_docs install_shared install_tools install_tunings install_kernels install_modules install_hashcat
|
||||
endif
|
||||
|
||||
# we need this extra target to make sure that for parallel builds (i.e. 2+ Makefile targets could possible run at the same time)
|
||||
@ -537,7 +544,6 @@ install_docs: install_make_shared_root
|
||||
$(INSTALL) -m 755 -d $(DESTDIR)$(DOCUMENT_FOLDER)/rules
|
||||
$(INSTALL) -m 755 -d $(DESTDIR)$(DOCUMENT_FOLDER)/extra
|
||||
$(INSTALL) -m 755 -d $(DESTDIR)$(DOCUMENT_FOLDER)/extra/tab_completion
|
||||
$(INSTALL) -m 755 -d $(DESTDIR)$(DOCUMENT_FOLDER)/tools
|
||||
$(INSTALL) -m 644 example.dict $(DESTDIR)$(DOCUMENT_FOLDER)/
|
||||
$(INSTALL) -m 644 example0.hash $(DESTDIR)$(DOCUMENT_FOLDER)/
|
||||
$(INSTALL) -m 644 example400.hash $(DESTDIR)$(DOCUMENT_FOLDER)/
|
||||
@ -558,7 +564,6 @@ install_docs: install_make_shared_root
|
||||
$(FIND) masks/ -type f -exec $(INSTALL) -m 644 {} $(DESTDIR)$(DOCUMENT_FOLDER)/{} \;
|
||||
$(FIND) rules/ -type d -exec $(INSTALL) -m 755 -d $(DESTDIR)$(DOCUMENT_FOLDER)/{} \;
|
||||
$(FIND) rules/ -type f -exec $(INSTALL) -m 644 {} $(DESTDIR)$(DOCUMENT_FOLDER)/{} \;
|
||||
$(FIND) tools/ -type f -name '*cat.p[ly]' -exec $(INSTALL) -m 755 {} $(DESTDIR)$(DOCUMENT_FOLDER)/{} \;
|
||||
$(SED) $(SED_IN_PLACE) 's/\.\/hashcat/hashcat/' $(DESTDIR)$(DOCUMENT_FOLDER)/example0.sh
|
||||
$(SED) $(SED_IN_PLACE) 's/\.\/hashcat/hashcat/' $(DESTDIR)$(DOCUMENT_FOLDER)/example400.sh
|
||||
$(SED) $(SED_IN_PLACE) 's/\.\/hashcat/hashcat/' $(DESTDIR)$(DOCUMENT_FOLDER)/example500.sh
|
||||
@ -602,9 +607,15 @@ install_hashcat: $(HASHCAT_FRONTEND)
|
||||
$(INSTALL) -m 755 -d $(DESTDIR)$(INSTALL_FOLDER)
|
||||
$(INSTALL) -m 755 $(HASHCAT_FRONTEND) $(DESTDIR)$(INSTALL_FOLDER)/
|
||||
|
||||
.PHONY: install_tools
|
||||
install_tools:
|
||||
$(INSTALL) -m 755 -d $(DESTDIR)$(INSTALL_FOLDER)
|
||||
$(INSTALL) -m 755 ${TOOLS} $(DESTDIR)$(INSTALL_FOLDER)/
|
||||
|
||||
.PHONY: uninstall
|
||||
uninstall:
|
||||
$(RM) -f $(DESTDIR)$(INSTALL_FOLDER)/$(HASHCAT_FRONTEND)
|
||||
$(RM) -f $(addprefix $(DESTDIR)$(INSTALL_FOLDER)/,$(notdir ${TOOLS}))
|
||||
$(RM) -f $(DESTDIR)$(LIBRARY_FOLDER)/$(HASHCAT_LIBRARY)
|
||||
$(RM) -rf $(DESTDIR)$(LIBRARY_DEV_FOLDER)
|
||||
$(RM) -rf $(DESTDIR)$(SHARED_FOLDER)
|
||||
|
Loading…
Reference in New Issue
Block a user