Makefile (893B)
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-eu-to-json 25 install -D -t $(bin_dir) robocop-un-to-json 26 install -D -t $(bin_dir) robocop-ofac-to-json 27 install -D -t $(bin_dir) robocop-uk-to-json 28 install -D -t $(bin_dir) robocop-json-postprocess 29 install -m 644 -D doc/prebuilt/man/robocop.1 $(man_dir)/man1 30 31 .PHONY: doc 32 doc: 33 cargo doc 34 35 .PHONY: deb 36 deb: 37 dpkg-buildpackage -b -uc -us 38 39 .PHONY: ci 40 ci: 41 contrib/ci/run-all-jobs.sh