Skip to content

Commit

Permalink
(trunk) Fixed problem with duplicate PHONY target. Fixed build_number…
Browse files Browse the repository at this point in the history
… rebuilds when mod flags change.

git-svn-id: https://svn.code.sf.net/p/gridlab-d/code/trunk@5411 54b63ff4-7b51-0410-8bda-9fa96797e505
  • Loading branch information
Dave Chassin committed May 12, 2016
1 parent a7bc881 commit 29304e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion aminclude.mk
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ DX_CLEAN_LATEX = @DX_DOCDIR@/latex

endif DX_COND_latex

.PHONY: doxygen-run doxygen-doc $(DX_PS_GOAL) $(DX_PDF_GOAL)
.PHONY: doxygen-run doxygen-doc $(DX_PS_GOAL) $(DX_PDF_GOAL) buildnum

.INTERMEDIATE: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)

Expand Down
3 changes: 1 addition & 2 deletions core/Makefile.mk
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,5 @@ pkginclude_HEADERS += core/version.h

core/build.h: buildnum

.PHONY: buildnum
buildnum:
buildnum: utilities/build_number
/bin/bash -c "source $(top_build_prefix)utilities/build_number $(top_srcdir) $(top_build_prefix)core/build.h"
2 changes: 1 addition & 1 deletion utilities/build_number
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fi
if test -z "$oldnum" -o "$new" -ne "$oldnum" -o -z "$oldbranch" -o "$oldbranch" != "$branch" ; then
echo "Updating $2: revision $new ($branch)"
echo "#define BUILDNUM $new" > $2
if test "${dir:0:6}" != "branch" ; then
if test "${dir:0:6}" != "branch" -o ! -z "$mod" ; then
echo "#define BRANCH \"$branch\"" >> $2
fi
fi

0 comments on commit 29304e8

Please sign in to comment.