Skip to content

Commit 45e1390

Browse files
committed
Add htscodecs submodule dependency to htscodecs/htscodecs/version.h
Add an order-only dependency on the htscodecs/htscodecs/version.h Makefile rule to match the one on the htscodecs/htscodecs/%.h pattern rule. This ensures that the check to see if the submodule is present runs for rules that have htscodecs/htscodecs/version.h as an explicit dependency, and that the htscodecs/htscodecs/version.h rule itself fails if the submodule is not present.
1 parent d1ef3de commit 45e1390

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ htscodecs/htscodecs:
628628
@false
629629

630630
# Build the htscodecs/htscodecs/version.h file if necessary
631-
htscodecs/htscodecs/version.h: force
631+
htscodecs/htscodecs/version.h: force | htscodecs/htscodecs
632632
@if test -e $(srcdir)/htscodecs/.git && test -e $(srcdir)/htscodecs/configure.ac ; then \
633633
vers=`cd $(srcdir)/htscodecs && git describe --always --dirty --match 'v[0-9]\.[0-9]*'` && \
634634
case "$$vers" in \

0 commit comments

Comments
 (0)