mirror of
https://github.com/lunchcat/sif.git
synced 2025-12-29 06:03:38 -08:00
25 lines
342 B
Makefile
25 lines
342 B
Makefile
.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 |