Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
271eb4c7
Commit
271eb4c7
authored
Jul 14, 2016
by
Massimiliano Culpo
Browse files
Enable out of source builds
parent
091a434f
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/Makefile.am
View file @
271eb4c7
...
...
@@ -19,7 +19,7 @@
MYFLAGS
=
-DTIMER
# Add the source directory and debug to CFLAGS
AM_CFLAGS
=
-I
..
/src
$(HDF5_CPPFLAGS)
AM_CFLAGS
=
-I
$(top_srcdir)
/src
$(HDF5_CPPFLAGS)
AM_LDFLAGS
=
$(HDF5_LDFLAGS)
...
...
src/Makefile.am
View file @
271eb4c7
...
...
@@ -92,12 +92,12 @@ version_string.h: version_string.h.in $(AM_SOURCES) $(include_HEADERS) $(noinst_
GIT_BRANCH
=
`
$(GIT_CMD)
branch |
sed
-n
's/^\* \(.*\)/\1/p'
`
;
\
sed
-e
"s,@PACKAGE_VERSION
\@
,
$(PACKAGE_VERSION)
,"
\
-e
"s,@GIT_REVISION
\@
,
$
${GIT_REVISION}
,"
\
-e
"s|@GIT_BRANCH
\@
|
$
${GIT_BRANCH}
|"
version_string.h.in
>
version_string.h
;
\
-e
"s|@GIT_BRANCH
\@
|
$
${GIT_BRANCH}
|"
$<
>
version_string.h
;
\
else
\
if
test
!
-f
version_string.h
;
then
\
sed
-e
"s,@PACKAGE_VERSION
\@
,
$(PACKAGE_VERSION)
,"
\
-e
"s,@GIT_REVISION
\@
,unknown,"
\
-e
"s,@GIT_BRANCH
\@
,unknown,"
version_string.h.in
>
version_string.h
;
\
-e
"s,@GIT_BRANCH
\@
,unknown,"
$<
>
version_string.h
;
\
fi
;
\
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment