Skip to content

Commit

Permalink
fix: move main.go to root and use go install on README
Browse files Browse the repository at this point in the history
  • Loading branch information
oNaiPs committed Oct 4, 2023
1 parent e428219 commit 90c425a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ GO := go
SRC_DIR := src
OUT_DIR := bin
TARGET := $(OUT_DIR)/go-generate-fast
MAIN_SOURCE := $(SRC_DIR)/cmd/main/main.go

# List of all Go source files
SOURCES := $(shell find $(SRC_DIR) -name "*.go")
Expand All @@ -25,7 +24,7 @@ build: $(TARGET) ## Build project
$(TARGET): $(SOURCES)
mkdir -p $(OUT_DIR)
echo "Building..."
$(GO) build -o $(TARGET) --tags=$(BUILD_TAGS) $(MAIN_SOURCE)
$(GO) build -o $(TARGET) --tags=$(BUILD_TAGS)
echo "Build complete. Output: $(TARGET)"

test: ## Run tests
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ significant speed boost by harnessing smart caching mechanisms.
## Install

```bash
go get github.com/oNaiPs/go-generate-fast
go install github.com/oNaiPs/go-generate-fast
```

## Usage
Expand Down
1 change: 0 additions & 1 deletion empty.go

This file was deleted.

File renamed without changes.

0 comments on commit 90c425a

Please sign in to comment.