mirror of
https://github.com/lunchcat/sif.git
synced 2026-03-12 21:23:04 -07:00
Add Makefile
This commit is contained in:
25
Makefile
Normal file
25
Makefile
Normal file
@@ -0,0 +1,25 @@
|
||||
.POSIX:
|
||||
.SUFFIXES:
|
||||
|
||||
GO ?= go
|
||||
RM ?= rm
|
||||
GOFLAGS ?=
|
||||
PREFIX ?= /usr/local
|
||||
BINDIR ?= bin
|
||||
|
||||
all: sif
|
||||
|
||||
sif:
|
||||
$(GO) build $(GOFLAGS) ./cmd/sif
|
||||
|
||||
clean:
|
||||
$(RM) -rf sif
|
||||
|
||||
install:
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/$(BINDIR)
|
||||
cp -f sif $(DESTDIR)$(PREFIX)/$(BINDIR)
|
||||
|
||||
uninstall:
|
||||
$(RM) $(DESTDIR)$(PREFIX)/$(BINDIR)/sif
|
||||
|
||||
.PHONY: all sif clean install uninstall
|
||||
Reference in New Issue
Block a user