]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - apps/screenshot.git/commitdiff
Fixing up makefile
authorJeff Lance <j-lance1@ti.com>
Fri, 9 Nov 2012 17:50:05 +0000 (11:50 -0600)
committerJeff Lance <j-lance1@ti.com>
Fri, 9 Nov 2012 17:50:05 +0000 (11:50 -0600)
* add install and install_debug options
* change makefile name to Makefile to be consistent.

Signed-off-by: Jeff Lance <j-lance1@ti.com>
Makefile [moved from makefile with 89% similarity]

similarity index 89%
rename from makefile
rename to Makefile
index 43fccaede477b594c040b55b5d7fae4de6c151c6..3c57250bdfe42850d66229365dc53323ff57a34d 100644 (file)
--- a/makefile
+++ b/Makefile
@@ -124,3 +124,20 @@ clean:
        @rm -f $(OBJDIR_D)/*
        @rm -f $(OBJDIR_R)/*
 
+install:
+       @install -d $(DESTDIR)/usr/bin
+       @if [ -e Release/screenShot ] ; then \
+               install Release/screenShot $(DESTDIR)/usr/bin ; \
+               echo "screenShot release version installed."; \
+       else \
+               echo "screenShot release version not compiled."; \
+       fi
+
+install_debug:
+       @install -d $(DESTDIR)/usr/bin
+       @if [ -e Debug/screenShot ] ; then \
+               install Debug/screenShot $(DESTDIR)/usr/bin ; \
+               echo "screenShot debug version installed."; \
+       else \
+               echo "screenShot debug version not compiled."; \
+       fi