forked from rpminspect/rpminspect-data-fedora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (40 loc) · 1.37 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
MESON_BUILD_DIR = build
topdir := $(shell realpath $(dir $(lastword $(MAKEFILE_LIST))))
all: setup
ninja -C $(MESON_BUILD_DIR) -v
setup:
meson setup $(MESON_BUILD_DIR)
check: setup
meson test -C $(MESON_BUILD_DIR) -v
srpm:
$(topdir)/utils/srpm.sh
release:
$(topdir)/utils/release.sh -A
koji: srpm
$(topdir)/utils/submit-koji-builds.sh $$(ls -1 $(topdir)/*.tar.*) $$(basename $(topdir))
clean:
-rm -rf $(MESON_BUILD_DIR)
help:
@echo "rpminspect-data-fedora helper Makefile"
@echo "The source tree uses meson(1) for building and testing, but this Makefile"
@echo "is intended as a simple helper for the common steps."
@echo
@echo " all Default target, setup tree to build and build"
@echo " setup Run 'meson setup $(MESON_BUILD_DIR)'"
@echo " check Run 'meson test -C $(MESON_BUILD_DIR) -v'"
@echo " srpm Generate an SRPM package of the latest release"
@echo " release Run 'utils/release.sh -A' to make a new release"
@echo " koji Run 'make srpm' then 'utils/submit-koji-builds.sh'"
@echo " clean Run 'rm -rf $(MESON_BUILD_DIR)'"
@echo
@echo "To build:"
@echo " make"
@echo
@echo "To run the test suite:"
@echo " make check"
@echo
@echo "Make a new release on Github:"
@echo " make release"
@echo
@echo "Generate SRPM of the latest release and do all Koji builds:"
@echo " make koji"