factor tools list to top of makefile
1 parent 2cb88d7 commit 80a14d2fe0a263b672a0179284a78d78cd5c452b
@tundra tundra authored on 30 Dec 2017
Showing 1 changed file
View
12
makefile
# Produce standard tools tarballs using linuxbrew
 
# Customize the variables as desired
 
EXPORTDIR = /shared
INSTALLDIR = /opt/TundraWare
TOOLS = tools
MYTOOLS = "emacs joe htop nload nmap screen the_silver_searcher tree vim"
 
# Nothing here should need changing
 
TOOLSDIR = ${INSTALLDIR}/${TOOLS}
 
BREW = ${TOOLSDIR}/bin/brew
BREW = ${TOOLSDIR}/bin/brew -v
DATESTAMP = $(shell date +%Y%m%d)
 
# Get latest linuxbrew
 
 
full-build:
echo "Make sure you OS autoconf, automake, and perl installed!"
echo 'Make sure the bootstrap is installed at $TOOLSDIR'
${BREW} install emacs joe htop nload nmap screen the_silver_searcher tree vim
${BREW} install ${MYTOOLS}
 
full-release: tidyup
cd ${INSTALLDIR} && mv -v ${TOOLS} ${TOOLS}-full-${DATESTAMP}
cd ${INSTALLDIR} && tar -czvf ${EXPORTDIR}/${TOOLS}-${DATESTAMP}.tar.gz ${TOOLS}-${DATESTAMP}