Skip to content

Commit

Permalink
Makefile install target updates version to match git rev of HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
cedwards committed Oct 27, 2022
1 parent 3702066 commit a4102c7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
BASTILLE_VERSION=$$(git rev-parse HEAD)

.PHONY: all
all:
@echo "Nothing to be done. Please use make install or make uninstall"
.PHONY: install
install:
@echo "Installing Bastille"
@echo
@echo "Updating Bastille version to match git revision."
@echo "BASTILLE_VERSION: ${BASTILLE_VERSION}"
@sed -i.orig "s/BASTILLE_VERSION=.*/BASTILLE_VERSION=${BASTILLE_VERSION}/" usr/local/bin/bastille
@cp -Rv usr /
@echo
@echo "This method is for testing / development."
@echo "This method is for testing & development."
@echo "Please report any issues to https://github.com/BastilleBSD/bastille/issues"

.PHONY: uninstall
uninstall:
Expand Down

0 comments on commit a4102c7

Please sign in to comment.