File: Makefile.am

package info (click to toggle)
cryptmount 6.2.0-1%2Bdeb12u1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 2,020 kB
  • sloc: ansic: 6,299; sh: 6,052; makefile: 159; sed: 16
file content (27 lines) | stat: -rw-r--r-- 647 bytes parent folder | download | duplicates (5)
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
# automake script for cryptmount testing suite
# RW Penney, March 2014

EXTRA_DIST = mudslinger.in passwd.fs

KEYHEADERS =	$(shell ls keys/*.hdr)
AUTOKEYS =	$(KEYHEADERS:%.hdr=%)

clean-local:
	-rm -f mudslinger-*-*.log
	-rm -f ${AUTOKEYS}

dist-hook:
	mkdir ${distdir}/keys; cp -p ${srcdir}/keys/[0-9]* ${distdir}/keys/

mudslinger:	mudslinger.in
	sed -e 's,@PKG_VERSION@,$(PACKAGE_VERSION),g' \
		-e 's,@CM_KEYMODS@,$(CM_MODULES),g' $< > $@
	chmod +x mudslinger

autokeys:	${AUTOKEYS}

${AUTOKEYS}:	${KEYHEADERS}
	for k in ${AUTOKEYS}; do \
		cp $${k}.hdr $${k}; \
		dd if=/dev/zero of=$${k} bs=32k count=64 \
			conv=notrunc oflag=append; done