Commit b2ac05ba by devttys0

Moved configure execution out of Makefile

parent 6297435e
......@@ -3287,6 +3287,11 @@ else
INSTALL_OPTIONS="-D -m644"
fi
cd ./src/C/file-*/ && ./configure || exit 1
cd -
cd ./src/C/ssdeep-*/ && ./configure || exit 1
cd -
SONAME=$SONAME
SOEXT=$SOEXT
......
......@@ -20,6 +20,11 @@ else
INSTALL_OPTIONS="-D -m644"
fi
cd ./src/C/file-*/ && ./configure || exit 1
cd -
cd ./src/C/ssdeep-*/ && ./configure || exit 1
cd -
AC_SUBST(SONAME, $SONAME)
AC_SUBST(SOEXT, $SOEXT)
AC_SUBST(INSTALL_OPTIONS, $INSTALL_OPTIONS)
......
FILE_VERSION="5.14"
SSDEEP_VERSION="2.10"
.PHONY: all install clean distclean uninstall file_src_configure file_make_prep ssdeep_src_configure ssdeep_make_prep
.PHONY: all install clean distclean uninstall file_make_prep ssdeep_make_prep
all: ssdeep_src_configure ssdeep_make_prep file_src_configure file_make_prep
all: ssdeep_make_prep file_make_prep
make -C miniz
make -C compress
make -C ssdeep-$(SSDEEP_VERSION) libfuzzybinwalk.la
......@@ -34,16 +34,10 @@ uninstall:
make -C ssdeep-$(SSDEEP_VERSION) uninstall-libLTLIBRARIES
make -C file-$(FILE_VERSION)/src uninstall-libLTLIBRARIES
file_src_configure:
if [ ! -e ./file-$(FILE_VERSION)/Makefile ]; then cd ./file-$(FILE_VERSION) && ./configure; fi
file_make_prep:
sed -e s/libmagic/libmagicbinwalk/g < ./file-$(FILE_VERSION)/src/Makefile >./file-$(FILE_VERSION)/src/mktmp
mv ./file-$(FILE_VERSION)/src/mktmp ./file-$(FILE_VERSION)/src/Makefile
ssdeep_src_configure:
if [ ! -e ./file-ssdeep-2.10/Makefile ]; then cd ./ssdeep-2.10 && ./configure; fi
ssdeep_make_prep:
sed -e s/libfuzzy/libfuzzybinwalk/g < ./ssdeep-$(SSDEEP_VERSION)/Makefile >./ssdeep-$(SSDEEP_VERSION)/mktmp
mv ./ssdeep-$(SSDEEP_VERSION)/mktmp ./ssdeep-$(SSDEEP_VERSION)/Makefile
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment