summaryrefslogtreecommitdiffstats
path: root/build
blob: 60cc68e768c3fd04712f93e09a61c1864d4deb36 (plain)
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
#!/usr/bin/make -f

include ../source.mk

nop:
	@:

build:
	oh-autobuild -T all
	touch $@

install: build
	oh-autoinstall
	install -m 0755 ../install-lilo.sh dest/sbin/install-lilo
	rm dest/etc/*/p*.d/* dest/etc/lilo.conf_example
	rm dest/boot/coffee.bmp dest/boot/debian*.bmp
	# Remove unneeded Perl and Bash scripts.
	set -e; \
	for script in keytab-lilo liloconfig lilo-uuid-diskid mkrescue; do \
		rm "dest/usr/sbin/$${script}"; \
		rm "dest/usr/share/man/man8/$${script}.8"; \
	done
	# Install package hooks.
	install -m 0755 -D ../kernel-postinst.sh \
		dest/etc/kernel/postinst.d/99-lilo
	oh-fixperms
	oh-strip
	oh-installfiles