File: cleancompile

package info (click to toggle)
traverso 0.49.2-5
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 7,732 kB
  • sloc: cpp: 44,568; ansic: 3,432; asm: 1,480; xml: 1,164; sh: 115; makefile: 16
file content (16 lines) | stat: -rwxr-xr-x 285 bytes parent folder | download | duplicates (7)
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