X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=0.2 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Message-ID: <30477859.post@talk.nabble.com> Date: Thu, 16 Dec 2010 17:48:01 -0800 (PST) From: gviewer To: cygwin AT cygwin DOT com Subject: How to specify full path in Makefile? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com hello, I downloaded a c++ library. The binary needs to take several files as input and they are specified in the Makefile like this: [Code] ... DATA_DIR = data LEXI = ${DATA_DIR}/input/LEXE BIGR = ${DATA_DIR}/input/BIGR ... [/code] The Make will create a binary file in the same directory as the DATA_DIR directory. Then the user has to always execute this binary in this same directory; if you execute it another directory, it will complain it can't find the data input file. Can I replace the relative path "data" with a full path like DATA_DIR ="C:\GeneTagger\data" // or DATA_DIR ="C:/GeneTagger/data" So that I can execute it anywhere? I tried, but I got the following message: [code] c:\tagger>make Makefile:67: *** target pattern contains no `%'. Stop. [/code] Can anyone help with this? Thanks. -- View this message in context: http://old.nabble.com/How-to-specify-full-path-in-Makefile--tp30477859p30477859.html Sent from the Cygwin list mailing list archive at Nabble.com. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple