summaryrefslogtreecommitdiff
path: root/src/chroot-tools/Makefile
blob: c49c4ac109315101ac146e488479eee739fe89c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# These files are coming from devtools
copy_files = makechrootpkg.sh.in mkarchroot.in arch-nspawn.in
# These are programs that we will use internally, but shouldn't be in PATH
libexecs = mkarchroot arch-nspawn distcc-tool chcleanup indent
no-progs = $(libexecs)
# These are the shell libraries we will use
libs = makechrootpkg.sh $(wildcard hooks-*.sh)

pots = $(libexecs) $(libs)

pkglibexecdir = $(libexecdir)/libretools/chroot
include ../../common.mk

# makechrootpkg.sh is created from a command, not a library
makechrootpkg.sh.in: %.sh.in: $(devtoolsdir)/%.in
	cp $< $@

mkarchroot: mkarchroot.in Makefile
	@echo '< $< M4_EDIT | SED > $@'
	@<'$<' $(edit) | sed -e 's|arch-nspawn|$$(librelib chroot/&)|' -e 's/pacstrap/env -i &/' >'$@'
	@echo 'CHMOD $<'; chmod 755 "$@"

distcc-tool.pot: xgettext-keywords-sh+=--keyword=errusage