123456789101112131415161718192021222324252627282930 |
- CXX:=go
- GOBUILD:=$(CXX) build
- GOCLEAN:=$(CXX) clean
- PROG:= strlst
- SOURCES:= strlst.go config.go commands.go
- all: build run
- build:
- $(GOBUILD) $(SOURCES)
- release:
- $(GOBUILD) -ldflags="-s -w" $(SOURCES)
- install:
- cp $(PROG) /usr/local/bin
- uninstall:
- rm -f /usr/local/bin/$(PROG)
- run:
- ./$(PROG)
- clean:
- $(GOCLEAN)
- test:
- ./$(PROG) list
|