How to specify full path in Makefile?

Fri Dec 17 05:20:00 GMT 2010

hello, I downloaded a c++ library. The binary needs to take several files as
input and they are specified in the Makefile like this:
DATA_DIR     = data
LEXI      = ${DATA_DIR}/input/LEXE
BIGR      = ${DATA_DIR}/input/BIGR
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:
Makefile:67: *** target pattern contains no `%'.  Stop.

Can anyone help with this? Thanks.
View this message in context:
Sent from the Cygwin list mailing list archive at

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list