pushokku/Makefile

29 lines
419 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)
build: clean $(BUILDDIR)
crystal build $(LDFLAGS) src/pushokku.cr -o $(BUILDDIR)/pushokku
build-release: LDFLAGS=--release --no-debug
build-release: build
2020-03-01 23:21:13 +00:00
2020-03-03 18:12:30 +00:00
install:
install -m 0755 -o root -g root \
$(BUILDDIR)/pushokku \
$(DESTDIR)/bin/pushokku
2020-03-01 23:21:13 +00:00
test:
run:
crystal run src/pushokku.cr
2020-03-03 18:12:30 +00:00
clean:
rm -f $(BUILDDIR)/pushokku