File: cleancompile

package info (click to toggle)
traverso 0.49.5-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 10,544 kB
  • sloc: cpp: 52,835; asm: 1,480; xml: 1,164; sh: 120; ansic: 35; makefile: 17
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