mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-23 23:19:09 +00:00
Add modules to make install target
This commit is contained in:
parent
0bec0cfb89
commit
e493704e5f
11
src/Makefile
11
src/Makefile
@ -451,9 +451,9 @@ Only Linux, FreeBSD and Darwin can use the 'install' target
|
||||
endif
|
||||
|
||||
ifeq ($(SHARED),1)
|
||||
install: install_docs install_shared install_library install_library_dev install_hashcat
|
||||
install: install_docs install_shared install_library install_library_dev install_kernels install_modules install_hashcat
|
||||
else
|
||||
install: install_docs install_shared install_hashcat
|
||||
install: install_docs install_shared 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)
|
||||
@ -502,10 +502,17 @@ install_shared: install_make_shared_root
|
||||
$(INSTALL) -m 755 -d $(DESTDIR)$(SHARED_FOLDER)
|
||||
$(INSTALL) -m 644 hashcat.hctune $(DESTDIR)$(SHARED_FOLDER)/
|
||||
$(INSTALL) -m 644 hashcat.hcstat2 $(DESTDIR)$(SHARED_FOLDER)/
|
||||
|
||||
install_kernels: install_shared
|
||||
$(INSTALL) -m 755 -d $(DESTDIR)$(SHARED_FOLDER)/OpenCL
|
||||
$(FIND) OpenCL/ -mindepth 1 -type d -execdir $(INSTALL) -m 755 -d $(DESTDIR)$(SHARED_FOLDER)/OpenCL/{} \;
|
||||
$(FIND) OpenCL/ -mindepth 1 -type f -execdir $(INSTALL) -m 644 {} $(DESTDIR)$(SHARED_FOLDER)/OpenCL/{} \;
|
||||
|
||||
install_modules: install_shared modules
|
||||
$(INSTALL) -m 755 -d $(DESTDIR)$(SHARED_FOLDER)/modules
|
||||
$(FIND) modules/ -mindepth 1 -type d -execdir $(INSTALL) -m 755 -d $(DESTDIR)$(SHARED_FOLDER)/modules/{} \;
|
||||
$(FIND) modules/ -mindepth 1 -type f -execdir $(INSTALL) -m 644 {} $(DESTDIR)$(SHARED_FOLDER)/modules/{} \;
|
||||
|
||||
install_library: $(HASHCAT_LIBRARY)
|
||||
$(INSTALL) -m 755 -d $(DESTDIR)$(LIBRARY_FOLDER)
|
||||
$(INSTALL) -m 755 $(HASHCAT_LIBRARY) $(DESTDIR)$(LIBRARY_FOLDER)/
|
||||
|
Loading…
Reference in New Issue
Block a user