~kaction/config

ref: 42707d29c994c30956608b9c9f10cbaf1d00add4 config/system-v2/nix-sys/default.o.do -rwxr-xr-x 227 bytes
42707d29 — Dmitry Bogatov nix-sys: generate build system inside of build system 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh -eu
cc=$(cat conf/cc)
redo-ifchange conf/cc generate chattr.h

if [ -e "$2.c" ] ; then
	src="$2.c"
else
	redo-ifchange "conf/feature-$2"
	src="$2/$(cat conf/feature-$2).c"
fi

redo-ifchange "$src"
$cc "$src" -c -o $3