mirror of
https://github.com/ipxe/ipxe
synced 2026-05-20 05:09:59 +03:00
[build] Allow for construction of a text file containing the version
Add a rule to construct bin/version.txt containing the version number, to allow a GitHub Actions workflow to verify that a tagged release embeds a version number that matches the tag. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -1094,6 +1094,11 @@ $(BIN)/NIC : $(AUTO_DEPS)
|
||||
@perl -ne 'chomp; print "$$1\n" if /\# NIC\t(.*)$$/' $^ >> $@
|
||||
CLEANUP += $(BIN)/NIC # Doesn't match the $(BIN)/*.* pattern
|
||||
|
||||
# Generate version number record
|
||||
#
|
||||
$(BIN)/version.txt : $(MAKEDEPS)
|
||||
@$(ECHO) "$(VERSION)" > $@
|
||||
|
||||
# Analyse a target name (e.g. "bin/dfe538--prism2_pci.rom.tmp") and
|
||||
# derive the variables:
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user