Skip to content

Commit

Permalink
🔧 Update makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
mmstick committed May 14, 2019
1 parent 67f5f18 commit 0e99bd0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@ sysconfdir ?= /etc
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
includedir = $(prefix)/include
datarootdir = $(prefix)/share
datadir = $(datarootdir)

SRC = Makefile Cargo.lock Cargo.toml $(shell find src -type f -wholename '*src/*.rs')

BIN=pop-upgrade
TARGET = debug

TESTING ?= 0
ifeq ($(TESTING),1)
ARGS += --features testing
endif

DEBUG ?= 0
TARGET = debug
ifeq ($(DEBUG),0)
ARGS += "--release"
TARGET = release
Expand Down Expand Up @@ -50,9 +49,8 @@ install: all
install -Dm0644 "data/$(BIN)-init.service" "$(DESTDIR)/lib/systemd/system/$(BIN)-init.service"
install -Dm0644 "data/$(BIN).conf" "$(DESTDIR)$(sysconfdir)/dbus-1/system.d/$(BIN).conf"

target/$(TARGET)/$(BIN): Makefile Cargo.lock Cargo.toml src/* src/*/*
target/$(TARGET)/$(BIN): $(SRC)
ifeq ($(VENDORED),1)
ls
tar pxf vendor.tar.xz
endif
cargo build $(ARGS)

0 comments on commit 0e99bd0

Please sign in to comment.