Refactor Makefile by removing unnecessary comments and default target
This commit is contained in:
7
Makefile
7
Makefile
@@ -1,10 +1,7 @@
|
||||
# Makefile for building testver
|
||||
|
||||
# Get version from git tags
|
||||
VERSION := $(shell git describe --tags --always 2>/dev/null)
|
||||
|
||||
# Default target
|
||||
.PHONY: testver clean
|
||||
.PHONY: clean
|
||||
|
||||
testver:
|
||||
ifneq ($(VERSION),)
|
||||
@@ -17,5 +14,3 @@ endif
|
||||
|
||||
clean:
|
||||
rm -f testver
|
||||
|
||||
.DEFAULT_GOAL := testver
|
||||
Reference in New Issue
Block a user