scc

A fork of https://git.simple-cc.org/scc/ for Qute

git clone https://git.8pit.net/scc.git

 1#!/bin/sh
 2
 3ed -s makefile <<EOF
 4H
 5/include/a
 6`for i
 7 do
 8	echo include $i/deps.mk
 9done`
10.
11/OBJS/a
12`for i
13 do
14	# Need to escape the single backlash to prevent ed
15	# from interperting it as escaping the newline
16	printf '\t$(%sOBJS)\\\\\\n' $(echo $i | tr a-z A-Z)
17done`
18.
19w
20EOF