www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/12/16/20:48:13

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 <marlonmin AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: How to specify full path in Makefile?
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019