Skip to content

Commit

Permalink
feat: Makefile to build locally
Browse files Browse the repository at this point in the history
Signed-off-by: Sayan Paul <saypaul@redhat.com>
  • Loading branch information
say-paul committed Jul 18, 2023
1 parent dc2bf5c commit fa87816
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ else
endif

.PHONY: all
all: build check
all: build test

$(RPM_SPECFILE):
mkdir -p $(CURDIR)/rpmbuild/SPECS
Expand All @@ -40,9 +40,9 @@ install: build
install -D -t ${DESTDIR}/usr/libexec "${TARGETDIR}/${PROFILE}/greenboot"
install -D -m 644 -t ${DESTDIR}/usr/lib/systemd/system dist/systemd/system/*.service

.PHONY: check
check:
cargo test "--target-dir=${TARGETDIR}"
.PHONY: test
test:
cargo test "--target-dir=${TARGETDIR}" -- --test-threads=1

.PHONY: srpm
srpm: $(RPM_SPECFILE) $(RPM_TARBALL) $(VENDOR_TARBALL)
Expand Down
2 changes: 1 addition & 1 deletion greenboot.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%global debug_package %{nil}
%bcond_without check
%global with_bundled 1
%global with_packit 1
%global with_packit 0
%global __cargo_skip_build 0
%global __cargo_is_lib() false
%global forgeurl https://github.com/fedora-iot/greenboot
Expand Down

0 comments on commit fa87816

Please sign in to comment.