view libtomcrypt/updatemakes.sh @ 665:4d9511f98462

fix out-of-tree cleaning If we build out of tree and then run `make clean`, we hit an infinite loop where libtommath tries to enter subdirs that don't exist and run `make clean`.
author Mike Frysinger <vapier@gentoo.org>
date Sun, 08 Apr 2012 02:06:54 -0400
parents 0cbe8f6dbf9e
children 6dba84798cd5
line wrap: on
line source

#!/bin/bash

bash genlist.sh > tmplist

perl filter.pl makefile tmplist
mv -f tmp.delme makefile

perl filter.pl makefile.icc tmplist
mv -f tmp.delme makefile.icc

perl filter.pl makefile.shared tmplist
mv -f tmp.delme makefile.shared

perl filter.pl makefile.unix tmplist
mv -f tmp.delme makefile.unix

perl filter.pl makefile.msvc tmplist
sed -e 's/\.o /.obj /g' < tmp.delme > makefile.msvc

rm -f tmplist
rm -f tmp.delme