summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..b86a5fd
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,27 @@
+.POSIX:
+
+all: tree/dev/null tree/dev/tty tree/dev/zero
+
+tree/dev/null:
+ mknod tree/dev/null c 1 3
+ chmod 666 tree/dev/null
+
+tree/dev/tty:
+ mknod tree/dev/tty c 5 0
+ chgrp tty tree/dev/tty
+ chmod 666 tree/dev/tty
+
+tree/dev/zero:
+ mknod tree/dev/zero c 1 5
+ chmod 666 tree/dev/zero
+
+install:
+ cp -au tree/* ${DESTDIR}/
+
+clean:
+ rm tree/dev/null
+ rm tree/dev/tty
+ rm tree/dev/zero
+
+release.tar: tree/*
+ tar -cf release.tar --exclude=release.tar --exclude=.git --format=posix --numeric-owner --owner=0 --group=0 -p --transform="s@./@adelie-base-${VERSION}/@" .