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):
|
$(BUILDDIR):
|
||||||
mkdir -p $(BUILDDIR)
|
mkdir -p $(BUILDDIR)
|
||||||
|
|
||||||
build: clean $(BUILDDIR)
|
$(BUILDDIR)/pushokku:
|
||||||
crystal build $(LDFLAGS) src/pushokku.cr -o $(BUILDDIR)/pushokku
|
crystal build $(LDFLAGS) src/pushokku.cr -o $(BUILDDIR)/pushokku
|
||||||
|
|
||||||
|
build: $(BUILDDIR)/pushokku
|
||||||
|
|
||||||
build-release: LDFLAGS=--release --no-debug
|
build-release: LDFLAGS=--release --no-debug
|
||||||
build-release: build
|
build-release: build
|
||||||
|
|
||||||
install:
|
install: build
|
||||||
install -m 0755 -o root -g root \
|
install -m 0755 -o root -g root \
|
||||||
$(BUILDDIR)/pushokku \
|
$(BUILDDIR)/pushokku \
|
||||||
$(DESTDIR)/bin/pushokku
|
$(DESTDIR)/bin/pushokku
|
||||||
|
|
Loading…
Reference in a new issue