Skip to content
Snippets Groups Projects
Makefile 424 B
# Define the version number
VERSION := 1.0.0

# Default target
all: build

# Build target
build:
    @echo "Building version $(VERSION)"
    # Add your build commands here

# Target to update the version
set-version:
    @read -p "Enter new version number: " new_version; \
    sed -i 's/VERSION := $(VERSION)/VERSION := $$new_version/' Makefile; \
    echo "Version updated to $$new_version"

.PHONY: all build set-version