]> git.proxmox.com Git - perlmod.git/blame - Makefile
macro: pass 'cv' as Value
[perlmod.git] / Makefile
CommitLineData
54fd53e1
WB
1# Shortcut for common operations:
2
3CRATES=perlmod perlmod-macro
4
5# By default we just run checks:
6.PHONY: all
7all: check
8
9.PHONY: deb
10deb: $(foreach c,$(CRATES), $c-deb)
11 echo $(foreach c,$(CRATES), $c-deb)
12 lintian build/*.deb
13
14.PHONY: dinstall
15dinstall:
16 $(MAKE) clean
17 $(MAKE) deb
18 sudo -k dpkg -i build/librust-*.deb
19
20%-deb:
21 ./build.sh $*
22 touch $@
23
906b95b1
WB
24builddeps: $(foreach c,$(CRATES), $c-builddeps)
25%-builddeps:
26 BUILDCMD="mk-build-deps" ./build.sh $*
27
54fd53e1
WB
28.PHONY: check
29check:
30 cargo test
31
32# Prints a diff between the current code and the one rustfmt would produce
33.PHONY: fmt
34fmt:
35 cargo +nightly fmt -- --check
36
37# Doc without dependencies
38.PHONY: doc
39doc:
40 cargo doc --no-deps
41
42.PHONY: clean
43clean:
44 cargo clean
45 rm -rf build *-deb
46
47.PHONY: update
48update:
49 cargo update
50
51%-upload: %-deb
52 cd build; \
53 dcmd --deb rust-$*_*.changes \
54 | grep -v '.changes$$' \
55 | tar -cf- -T- \
0daaa90c 56 | ssh -X repoman@repo.proxmox.com upload --product devel --dist bullseye