File: Makefile

package info (click to toggle)
gcab 1.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 868 kB
  • sloc: ansic: 3,821; makefile: 62; sh: 23
file content (18 lines) | stat: -rw-r--r-- 567 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
all: test-none.cab test-mszip.cab test-signed.cab

test-none.cab: src/test.sh src/test.txt
	touch -t 201709150000 src/test.sh src/test.txt &
	gcab --create --nopath $@ src/test.sh src/test.txt

test-mszip.cab: src/test.sh src/test.txt
	gcab --create --nopath --zip $@ src/test.sh src/test.txt

privkey.pem:
	certtool --generate-privkey --outfile $@

test-signed.cab: privkey.pem test-none.cab
	osslsigncode sign -certs /etc/pki/fwupd/LVFS-CA.pem \
		-key privkey.pem \
		-n "Test Firmware" -i https://fwupd.org/ \
		-jp low \
		-in test-none.cab -out test-signed.cab