File: cleancompile

package info (click to toggle)
traverso 0.42.0-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,608 kB
  • ctags: 5,676
  • sloc: cpp: 41,746; ansic: 2,848; asm: 1,480; xml: 1,097; sh: 115; makefile: 43
file content (16 lines) | stat: -rwxr-xr-x 285 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
# With no args, does a full recompile
# With -m, just remove dirty bins, qmake, make

if [ "$1" != "-m" ] ; then
	make clean
fi

rm -r lib/* traverso

if [ "$1" != "-m" ] ; then
	find ./ -name Makefile -type f -print0 | xargs -0 /bin/rm -f
fi

qmake -nocache
time make -j2