summaryrefslogtreecommitdiff
path: root/Makefile
blob: b86a5fdd230e0886fb29596553a2163b0fb9a72f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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}/@" .