aboutsummaryrefslogtreecommitdiff
path: root/cores
diff options
context:
space:
mode:
authorDavid A. Mellis <d.mellis@arduino.cc>2008-08-17 20:10:47 +0000
committerDavid A. Mellis <d.mellis@arduino.cc>2008-08-17 20:10:47 +0000
commit1994278a7af0042efda5f01ac681c9dcdd92d38d (patch)
tree9ed11468696493970524eaacbaf7356325f6e9b9 /cores
parent3460189d097869d3ac10589f18ad28bbde50bd6f (diff)
Updating Makefile to derive target name from the current folder.
Diffstat (limited to 'cores')
-rwxr-xr-xcores/arduino/Makefile24
1 files changed, 11 insertions, 13 deletions
diff --git a/cores/arduino/Makefile b/cores/arduino/Makefile
index 32eda14..571687d 100755
--- a/cores/arduino/Makefile
+++ b/cores/arduino/Makefile
@@ -7,36 +7,34 @@
# Detailed instructions for using the makefile:
#
# 1. Copy this file into the folder with your sketch. There should be a
-# file with the extension .pde (e.g. foo.pde)
+# file with the same name as the folder and with the extension .pde
+# (e.g. foo.pde in the foo/ folder).
#
-# 2. Below, modify the line containing "TARGET" to refer to the name of
-# of your program's file without an extension (e.g. TARGET = foo).
-#
-# 3. Modify the line containg "INSTALL_DIR" to point to the directory that
+# 2. Modify the line containg "INSTALL_DIR" to point to the directory that
# contains the Arduino installation (for example, under Mac OS X, this
-# might be /Applications/arduino-0011).
+# might be /Applications/arduino-0012).
#
-# 4. Modify the line containing "PORT" to refer to the filename
+# 3. Modify the line containing "PORT" to refer to the filename
# representing the USB or serial connection to your Arduino board
# (e.g. PORT = /dev/tty.USB0). If the exact name of this file
-# changes, you can use * as a wildcard (e.g. PORT = /dev/tty.USB*).
+# changes, you can use * as a wildcard (e.g. PORT = /dev/tty.usb*).
#
-# 5. Set the line containing "MCU" to match your board's processor.
+# 4. Set the line containing "MCU" to match your board's processor.
# Older one's are atmega8 based, newer ones like Arduino Mini, Bluetooth
# or Diecimila have the atmega168. If you're using a LilyPad Arduino,
# change F_CPU to 8000000.
#
-# 6. At the command line, change to the directory containing your
+# 5. At the command line, change to the directory containing your
# program's file and the makefile.
#
-# 7. Type "make" and press enter to compile/verify your program.
+# 6. Type "make" and press enter to compile/verify your program.
#
-# 8. Type "make upload", reset your Arduino board, and press enter to
+# 7. Type "make upload", reset your Arduino board, and press enter to
# upload your program to the Arduino board.
#
# $Id$
-TARGET = foo
+TARGET = $(notdir $(CURDIR))
INSTALL_DIR = /Users/dmellis/Source/arduino/trunk/build/macosx/build/work
PORT = /dev/tty.usb*
UPLOAD_RATE = 19200