aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDave Reisner <d@falconindy.com>2011-04-23 11:21:10 -0400
committerTom Gundersen <teg@jklm.no>2011-04-23 21:44:05 +0200
commita2b481098b19e49d8d9143bcaf385fccb9ba08e8 (patch)
tree44c1c5657261842548981531e5cf139ab82d752b /Makefile
parent5fcb5afeb15d0617407abfd5b0827153b632d7c4 (diff)
downloadinitscripts-a2b481098b19e49d8d9143bcaf385fccb9ba08e8.tar.xz
Use Makefile to replace install.sh
If we're going to use a Makefile for minilogd, we might as well use it for everything. This has some moving pieces: * fix minilogd rule: minilogd.o is a target dep not a build rule * rename adjtime.cron => adjtime * fixup PKGBUILD to account for changes Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0ec54ee..d3a1824 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,18 @@
-VER:=$(shell sh -c 'git describe')
+VER := $(shell git describe)
+DIRS := /etc/rc.d /etc/conf.d /etc/rc.d/functions.d /etc/cron.hourly /sbin
-minilogd:
- minilogd.o
+minilogd: minilogd.o
+
+installdirs:
+ install -dm755 $(foreach DIR, $(DIRS), $(DESTDIR)$(DIR))
+
+install: minilogd installdirs
+ install -m644 -t $(DESTDIR)/etc inittab rc.conf
+ install -m644 -t $(DESTDIR)/etc/rc.d functions
+ install -m755 -t $(DESTDIR)/etc rc.local rc.local.shutdown rc.multi rc.shutdown rc.single rc.sysinit
+ install -m755 -t $(DESTDIR)/etc/cron.hourly adjtime
+ install -m755 -t $(DESTDIR)/etc/rc.d functions hwclock network netfs
+ install -m755 -t $(DESTDIR)/sbin minilogd rc
clean:
rm -f minilogd minilogd.o