Makefile (711B)
1 # This Makefile has been placed under the public domain 2 -include build-system/config.mk 3 4 # Absolute DESTDIR or empty string if DESTDIR unset/empty 5 abs_destdir=$(abspath $(DESTDIR)) 6 7 man_dir=$(abs_destdir)$(prefix)/share/man 8 bin_dir=$(abs_destdir)$(prefix)/bin 9 10 all: build 11 12 .PHONY: check 13 check: 14 cargo test 15 16 .PHONY: build 17 build: 18 cargo build --release 19 20 .PHONY: install 21 install: build 22 install -D -t $(bin_dir) target/release/robocop 23 install -D -t $(bin_dir) robocop-ch-to-json 24 install -D -t $(bin_dir) robocop-json-postprocess 25 install -m 644 -D doc/prebuilt/man/robocop.1 $(man_dir)/man1 26 27 .PHONY: doc 28 doc: 29 cargo doc 30 31 .PHONY: deb 32 deb: 33 dpkg-buildpackage -b -uc -us 34 35 .PHONY: ci 36 ci: 37 contrib/ci/run-all-jobs.sh