Makefile: Improve build target
This commit is contained in:
parent
b0a53bb6a2
commit
d95652b5d6
1 changed files with 4 additions and 2 deletions
6
Makefile
6
Makefile
|
@ -9,13 +9,15 @@ all: build
|
|||
$(BUILDDIR):
|
||||
mkdir -p $(BUILDDIR)
|
||||
|
||||
build: clean $(BUILDDIR)
|
||||
$(BUILDDIR)/pushokku:
|
||||
crystal build $(LDFLAGS) src/pushokku.cr -o $(BUILDDIR)/pushokku
|
||||
|
||||
build: $(BUILDDIR)/pushokku
|
||||
|
||||
build-release: LDFLAGS=--release --no-debug
|
||||
build-release: build
|
||||
|
||||
install:
|
||||
install: build
|
||||
install -m 0755 -o root -g root \
|
||||
$(BUILDDIR)/pushokku \
|
||||
$(DESTDIR)/bin/pushokku
|
||||
|
|
Loading…
Reference in a new issue