pare down bootstrap build and do most things in full build, quiet down makefile
1 parent 9832d1d commit 10f78ea96af70854c230f9b74c298c1de7d52dd5
@tundra tundra authored on 1 Jan 2018
Showing 1 changed file
View
12
makefile
EXPORTDIR = /shared
INSTALLDIR = /opt/TundraWare
TOOLS = tools
LANGS = perl python
MYTOOLS = emacs joe htop nload nmap screen the_silver_searcher tree vim
MYTOOLS = emacs file-formula joe git htop nload nmap screen the_silver_searcher tree vim
PIPMODULES = ansible pew pew[pythonz]
 
# Nothing below here should need changing
 
 
# Get latest linuxbrew
 
getbrew:
echo "Make sure you have write permission on the target directory!"
@echo "Make sure you have write permission on the target directory!"
git clone https://github.com/Linuxbrew/brew.git ${TOOLSDIR}
 
bootstrap-build:
echo "Make sure you have the OS development tools installed!"
${BREW} install gcc git make file-formula
@echo "Make sure you have the OS development tools installed!"
${BREW} install gcc make
 
bootstrap-release: tidyup
cd ${INSTALLDIR} && mv -v ${TOOLS} ${TOOLS}-bootstrap-${DATESTAMP}
cd ${INSTALLDIR} && tar -czvf ${EXPORTDIR}/${TOOLS}-bootstrap-${DATESTAMP}.tar.gz ${TOOLS}-bootstrap-${DATESTAMP}
 
full-build:
echo "Make sure your OS autoconf, automake, and perl are installed!"
echo 'Make sure the bootstrap is installed at $TOOLSDIR'
@echo "Make sure your OS autoconf, automake, and perl are installed!"
@echo "Make sure the bootstrap is installed at ${TOOLSDIR}"
${BREW} install ${LANGS}
ln -nfs ${INSTALLDIR}/${TOOLS}/bin/python2 ${INSTALLDIR}/${TOOLS}/bin/python
ln -nfs ${INSTALLDIR}/${TOOLS}/bin/pip2 ${INSTALLDIR}/${TOOLS}/bin/pip
pip install ${PIPMODULES} -U --ignore-installed