2011-05-26 04:45:00 +00:00
|
|
|
VER := $(shell git describe)
|
2011-08-08 04:11:13 +00:00
|
|
|
DIRS := \
|
|
|
|
/etc/rc.d \
|
|
|
|
/etc/conf.d \
|
|
|
|
/etc/rc.d/functions.d \
|
|
|
|
/etc/logrotate.d \
|
|
|
|
/sbin \
|
|
|
|
/etc/tmpfiles.d \
|
|
|
|
/usr/lib/tmpfiles.d \
|
|
|
|
/usr/lib/initscripts \
|
|
|
|
/etc/bash_completion.d \
|
|
|
|
/usr/share/zsh/site-functions
|
2011-05-26 04:45:00 +00:00
|
|
|
|
|
|
|
minilogd: minilogd.o
|
|
|
|
|
|
|
|
installdirs:
|
|
|
|
install -dm755 $(foreach DIR, $(DIRS), $(DESTDIR)$(DIR))
|
|
|
|
|
|
|
|
install: minilogd installdirs
|
|
|
|
install -m644 -t $(DESTDIR)/etc inittab rc.conf
|
|
|
|
install -m755 -t $(DESTDIR)/etc rc.local rc.local.shutdown rc.multi rc.shutdown rc.single rc.sysinit
|
2011-08-08 04:11:13 +00:00
|
|
|
install -m644 -t $(DESTDIR)/etc/logrotate.d bootlog
|
2011-06-18 04:44:09 +00:00
|
|
|
install -m644 -t $(DESTDIR)/etc/rc.d functions
|
|
|
|
install -m755 -t $(DESTDIR)/etc/rc.d hwclock network netfs
|
2011-05-26 04:45:00 +00:00
|
|
|
install -m755 -t $(DESTDIR)/sbin minilogd rc.d
|
2011-08-08 04:11:13 +00:00
|
|
|
install -m755 -t $(DESTDIR)/usr/lib/initscripts arch-tmpfiles
|
|
|
|
install -m644 tmpfiles.conf $(DESTDIR)/usr/lib/tmpfiles.d/arch.conf
|
2011-06-18 04:44:09 +00:00
|
|
|
install -m644 -T bash-completion $(DESTDIR)/etc/bash_completion.d/rc.d
|
|
|
|
install -m644 -T zsh-completion $(DESTDIR)/usr/share/zsh/site-functions/_rc.d
|
2011-05-26 04:45:00 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f minilogd minilogd.o
|
|
|
|
|
|
|
|
release:
|
|
|
|
git archive HEAD --prefix=initscripts-$(VER)/ | xz > initscripts-$(VER).tar.xz
|