improve makefile cleanup stanza, document bootstrap build
1 parent 02f040d commit 1953c3a7f8a3786f86b60eb9d5b7522fdb66c9bf
@tundra tundra authored on 30 Dec 2017
Showing 2 changed files
View
22
README.md
 
 
## Building The Bootstrap Image
 
1. Log into your build machine, VM, or docker image.
 
2. Make sure you have write permission to the installation directory.
 
3. Make sure the native OS compiler tools are installed.
 
4. Get the linuxbrew image:
 
`make getbrew`
 
5. Build the bootstrap image:
 
`make bootstrap-build`
 
6. Build a release tarball and export it:
 
`make bootstrap-release`
 
7. Cleanup:
 
`make clean`
 
 
## Building The Full Tools Set
 
 
View
4
makefile
echo 'Make sure the bootstrap is installed at $TOOLSDIR'
${BREW} install ${MYTOOLS}
 
full-release: tidyup
cd ${INSTALLDIR} && mv -v ${TOOLS} ${TOOLS}-full-${DATESTAMP}
cd ${INSTALLDIR} && mv -v ${TOOLS} ${TOOLS}-${DATESTAMP}
cd ${INSTALLDIR} && tar -czvf ${EXPORTDIR}/${TOOLS}-${DATESTAMP}.tar.gz ${TOOLS}-${DATESTAMP}
 
tidyup:
${BREW} config
${BREW} cleanup
-${BREW} doctor
 
clean:
rm -vrf ${TOOLSDIR}
cd ${INSTALLDIR} && rm -vrf ${TOOLS} ${TOOLS}-bootstrap-${DATESTAMP} ${TOOLS}-${DATESTAMP}