Skip to content

Commit

Permalink
Improve dependencies in the makefile.
Browse files Browse the repository at this point in the history
Make src/hvinfo a phony target to let gprbuild sort out actual
Ada dependencies.
  • Loading branch information
dmbaturin committed Apr 5, 2015
1 parent f3f6b8b commit f1c071d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ GNATPREP = gnatprep

INSTALL = install

all: src/hvinfo
all: src/config.ads src/hvinfo

src/config.ads: VERSION mkconfig.sh src/config.ads.in
GNATPREP=$(GNATPREP) ./mkconfig.sh

.PHONY: src/hvinfo
src/hvinfo:
./mkconfig.sh
$(GPRBUILD) -Phvinfo

clean:
Expand Down
2 changes: 1 addition & 1 deletion mkconfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ case $OS in
exit 1
esac

gnatprep -D LINUX=$HVINFO_LINUX \
$GNATPREP -D LINUX=$HVINFO_LINUX \
-D FREEBSD=$HVINFO_FREEBSD \
-D VERSION=\"$VERSION\" \
src/config.ads.in src/config.ads

0 comments on commit f1c071d

Please sign in to comment.