summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..d3a1824
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+VER := $(shell git describe)
+DIRS := /etc/rc.d /etc/conf.d /etc/rc.d/functions.d /etc/cron.hourly /sbin
+
+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
+
+release:
+ git archive HEAD --prefix=initscripts-$(VER)/ | xz > initscripts-$(VER).tar.xz