Browse Source

Don't build executables if they're already built

Samuel W. Flint 7 years ago
parent
commit
d20924cbac
1 changed files with 12 additions and 4 deletions
  1. 12 4
      build-bins.sh

+ 12 - 4
build-bins.sh

@@ -4,13 +4,21 @@
 cd ~/bin
 
 # Build X11 Idle
-gcc -l Xss -l X11 x11idle.c -o x11idle
+if [ ! -e x11idle ] ; then
+    gcc -l Xss -l X11 x11idle.c -o x11idle
+fi
 
 # Build pango-list-typefaces
-gcc -o pango-list-typefaces -Wall -g pango-list-typefaces.c `pkg-config --cflags --libs pango` `pkg-config --cflags --libs cairo` `pkg-config --cflags --libs pangocairo` `pkg-config --cflags --libs glib-2.0`
+if [ ! -e pango-list-typefaces ] ; then
+    gcc -o pango-list-typefaces -Wall -g pango-list-typefaces.c `pkg-config --cflags --libs pango` `pkg-config --cflags --libs cairo` `pkg-config --cflags --libs pangocairo` `pkg-config --cflags --libs glib-2.0`
+fi
 
 # Build the excuse generator
-sbcl --load generate-excuse-build.lisp
+if [ ! -e excuse ] ; then
+    sbcl --load generate-excuse-build.lisp
+fi
 
 # Build the executive decision maker
-sbcl --load make-decision-build.lisp
+if [ ! -e decide ] ; then
+    sbcl --load make-decision-build.lisp
+fi