Thread: Need help fixing a makefile function

  1. #1
    Registered User awsdert's Avatar
    Join Date
    Jan 2015
    Posts
    1,682

    Need help fixing a makefile function

    First the error make gives me:

    Code:
    .../paw-shared.mak:24: *** unterminated variable reference.  Stop.
    The function in question:

    makefile * 39b2226b8d3bd2c58fbd2a09135628266590e4ac * Lee Shallis / Dragonbuilder * GitLab

    I've looked and looked but I can't see where I went wrong, the last time make was called in the output looked like this:

    Code:
    cd src/librawpaw && make --no-print-directory TDIR=".../.paw/_/prjs" ODIR=".../.paw/_/objs/librawpaw" -f build.mak all
    Some help finding the offending variable/s would be appreciated

  2. #2
    Registered User awsdert's Avatar
    Join Date
    Jan 2015
    Posts
    1,682
    Seems make refused to defer variable expansion on the open/close variables for shell/batch variables, make stopped complaining after I moved the expansion to a function:
    Code:
    V=$(if $(ON_WINDOWS),%$$1%,$${$1})

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. New to C - Would appreciate help fixing this issue
    By ntantar in forum C Programming
    Replies: 8
    Last Post: 01-28-2017, 02:49 PM
  2. Need help fixing my game timer FPS function
    By Anddos in forum Game Programming
    Replies: 3
    Last Post: 04-02-2012, 05:34 PM
  3. Help fixing a warning!!
    By tummala_005 in forum C Programming
    Replies: 3
    Last Post: 12-09-2008, 10:28 AM
  4. difference makefile makefile.am makefile.in
    By Bargi in forum Linux Programming
    Replies: 7
    Last Post: 10-28-2007, 02:08 PM
  5. How would I got about fixing this?
    By SlyMaelstrom in forum C++ Programming
    Replies: 1
    Last Post: 04-23-2005, 05:34 AM

Tags for this Thread