pushokku/Makefile

35 lines
478 B
Makefile
Raw Normal View History

2020-03-01 23:21:13 +00:00
2020-03-03 17:56:19 +00:00
LDFLAGS=
2020-03-03 18:12:30 +00:00
DESTDIR=/usr
BUILDDIR=_build
2020-03-03 17:56:19 +00:00
2020-03-01 23:21:13 +00:00
all: build
2020-03-03 18:12:30 +00:00
$(BUILDDIR):
mkdir -p $(BUILDDIR)
2020-03-03 18:19:04 +00:00
$(BUILDDIR)/pushokku:
2020-03-03 18:12:30 +00:00
crystal build $(LDFLAGS) src/pushokku.cr -o $(BUILDDIR)/pushokku
2020-03-03 18:19:04 +00:00
build: $(BUILDDIR)/pushokku
2020-03-03 18:12:30 +00:00
build-release: LDFLAGS=--release --no-debug
build-release: build
2020-03-01 23:21:13 +00:00
2020-03-03 18:19:04 +00:00
install: build
2020-03-03 18:12:30 +00:00
install -m 0755 -o root -g root \
$(BUILDDIR)/pushokku \
$(DESTDIR)/bin/pushokku
2020-03-03 18:15:09 +00:00
spec:
crystal spec
test: spec
2020-03-01 23:21:13 +00:00
run:
crystal run src/pushokku.cr
2020-03-03 18:12:30 +00:00
clean:
rm -f $(BUILDDIR)/pushokku