Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

builds fail with GNU make v. 3.82 #94

Open
dagit opened this issue Jan 31, 2013 · 0 comments
Open

builds fail with GNU make v. 3.82 #94

dagit opened this issue Jan 31, 2013 · 0 comments

Comments

@dagit
Copy link
Member

dagit commented Jan 31, 2013

Converted from SourceForge issue 3413309, submitted by jean_utke

For changeset b7386ff

the make invocation fails with:
cd /sandbox/Argonne/git/fortran-parser/src/fortran/ofp; make
make[1]: Entering directory /sandbox/Argonne/git/fortran-parser/src/fortran/ofp' cd parser ; make make[2]: Entering directory/sandbox/Argonne/git/fortran-parser/src/fortran/ofp/parser'
cd java ; make
make[3]: Entering directory `/sandbox/Argonne/git/fortran-parser/src/fortran/ofp/parser/java'
Makefile:161: *** mixed implicit and normal rules. Stop.

The problem comes from the evaluation of the make variables in this Makefile in the following sequence:
....
DATE=date "+20%y%m%d"
...
ALT_JARFILE=OpenFortranParser-$(DATE).jar
....and line 161:
$(BUILDDIR)/$(ALT_JARFILE): $(CLASS_FILES)

and here DATE isn't evaluated (yet) when the error is reported. Instead I assume the "%" in tbe string is interpreted as a suffix start.
Hence the error message.
Resetting "DATE" to some other string constant makes the problem disappear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant