aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/Makefile
blob: 44686b06d8be8b6d6feb9d38889634edbfebc3d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
PL=remove-boot-splash
SH=make-boot-splash make-boot-splash-raw rewritejpeg switch-themes remove-theme
SBIN=splash.sh bootanim
SYS=bootsplash.sysconfig

sharedir=/usr/share
etcsysdir=/etc/sysconfig

all: check

check:
	@for i in $(SH) $(SBIN);do /bin/bash -n $$i || exit 1;echo $$i syntax OK;done
	@for i in $(PL);do perl -c $$i ||exit 1;done

install:
	@mkdir -p $(prefix)$(sharedir)/bootsplash/scripts/ $(prefix)$(etcsysdir) $(prefix)/sbin/
	@for i in $(SH) $(PL);do install -m755 $$i $(prefix)$(sharedir)/bootsplash/scripts/;done
	@for i in $(SBIN);do install -m755 $$i $(prefix)/sbin/;done
	install -m644 bootsplash.sysconfig $(prefix)$(etcsysdir)/bootsplash

clean:
	rm -f *~ \#*\#