Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8239953
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T20:19:21+00:00 2026-06-07T20:19:21+00:00

$(BUILDDIR)/%.check: $(SRCDIR)/%.c $(eval pragma := $(shell grep pragma $< )) @echo $<: $(pragma) $(pragma)

  • 0
$(BUILDDIR)/%.check: $(SRCDIR)/%.c
        $(eval pragma := $(shell grep "pragma" $< ))
        @echo $<: $(pragma)

$(pragma) variable is always a null string, even for files containing #pragma

What’s wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T20:19:23+00:00Added an answer on June 7, 2026 at 8:19 pm

    There are several things wrong.

    1) You are putting Make syntax into a command, which should be in the shell syntax.

    2) You are attempting to set a variable in one command and use it in another (which won’t work because each command runs in its own subshell).

    3) You have attempted a complex command without testing its simpler components (which would have told you that something was wrong).

    If all you want to do is display the #pragma lines, this will do it:

    $(BUILDDIR)/%.check: $(SRCDIR)/%.c
        @echo $<: `grep "pragma" $<`
    

    If you want to do something more complex with the lines, tell us what it is and we’ll see if we can help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

C:\Program Files (x86)\MSBuild\Novell\mandroid.exe -v --nosign --sdk-dir=C:\android-sdk-windows --builddir=C:\dotnetdev\MapDroid\obj\Debug\android --framework-dir=C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v2.2 --framework-dir=C:\Program Files (x86)\Reference
I have written a function that checks if to files are duplicates or not.
I'm trying to get an ant build file to generate identical class files as
I got this ANT task: <javac verbose=on srcdir=${src.dir} destdir=${build.dir}/${context.path}/classes debug=${compile.debug} debuglevel=${javac.debuglevel} optimize=${compile.optimize} deprecation=${javac.deprecation} failonerror=true>
To generate dependency files I can use something like this to generate dependency files:
I'm trying to write a Gradle task which copies generated war files to my
I have the following set of files with MSBuild: <ScriptFiles Include=Server/scripts/**/*.js /> I then
I created a build.proj file which consists of a task to copy files that
I'm trying to edit a make file that controls the generation of pdf files
Instead of adding or modifying files in the directory where the sources of a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.