-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
32 lines (23 loc) · 796 Bytes
/
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
.PHONY: rpms rpm-source rpm-clean rpm-zstd rpm-gz rpm-xz \
test test-interactive byte-compile
rpms: rpm-clean rpm-source rpm-zstd rpm-gz rpm-xz
rpm-clean:
rm -rf ~/rpmbuild/SOURCES/* test/RPMS
rpm-source:
mkdir -p ~/rpmbuild/SOURCES test/RPMS
tar -C test -cvzf ~/rpmbuild/SOURCES/package-1.tgz package-1
rpm-zstd:
rpmbuild -ba test/package.spec --define "_binary_payload w19.zstdio"
mv ~/rpmbuild/RPMS/noarch test/RPMS/zstd
rpm-gz:
rpmbuild -ba test/package.spec --define "_binary_payload w9.gzdio"
mv ~/rpmbuild/RPMS/noarch test/RPMS/gz
rpm-xz:
rpmbuild -ba test/package.spec --define "_binary_payload w6.xzdio"
mv ~/rpmbuild/RPMS/noarch test/RPMS/xz
test: rpms
make -C test test
test-interactive: rpms
make -C test test-interactive
byte-compile:
make -C test byte-compile