Permalink
Browse files

Tiny bit of clean-up to help with deploying

* Added desktop entry
* Moved to a Makefile
  • Loading branch information...
1 parent b17ff5f commit e50fa668679859bf6cd4b476a4a280140e6ad36c @jadonk committed Sep 12, 2012
Showing with 27 additions and 3 deletions.
  1. +17 −0 Makefile
  2. +0 −3 build.sh
  3. +3 −0 runstache
  4. +7 −0 stache.desktop
View
@@ -0,0 +1,17 @@
+CC=g++
+CFLAGS=`pkg-config --static --libs opencv` -O3
+
+# I've saved off some magic lines that help me build on a personal machine
+#CFLAGS := `pkg-config --static --libs opencv | perl -pe "s/\/Users\/jason\/gentoo\/usr\/lib/\/usr\/local\/lib/g"`
+#CFLAGS := `pkg-config --static --libs opencv | perl -pe "s/\/Users\/jason\/gentoo\/usr\/lib/\/usr\/local\/lib/g" | perl -pe "s/\.dynlib/\.a/g"` /Developer/SDKs/MacOSX10.7.sdk/usr/lib/crt1.o
+
+all: stache
+
+stache: stache.cpp
+ $(CC) $(CFLAGS) -o stache stache.cpp
+
+clean:
+ rm -f stache
+
+install: stache
+ cp stache.desktop $(HOME)/Desktop/
View
@@ -1,3 +0,0 @@
-#!/bin/sh
-g++ -o stache stache.cpp `pkg-config --static --libs opencv | perl -pe "s/\/Users\/jason\/gentoo\/usr\/lib/\/usr\/local\/lib/g"`
-#g++ -static -o stache stache.cpp `pkg-config --static --libs opencv | perl -pe "s/\/Users\/jason\/gentoo\/usr\/lib/\/usr\/local\/lib/g" | perl -pe "s/\.dynlib/\.a/g"` /Developer/SDKs/MacOSX10.7.sdk/usr/lib/crt1.o
View
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd $HOME/stache
+./stache
View
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Version=1.0
+Name=BeagleStache
+Comment=Superimposes mustache using OpenCV
+Exec=/home/root/stache/runstache
+Terminal=true
+Type=Application

0 comments on commit e50fa66

Please sign in to comment.