summaryrefslogtreecommitdiff
path: root/src/depend.sh
diff options
context:
space:
mode:
author@syxhe <https://t.me/syxhe>2025-04-17 18:53:36 -0500
committer@syxhe <https://t.me/syxhe>2025-04-17 18:53:36 -0500
commit18811c585d5ff1285446d3eee301e2139dc1a60b (patch)
treec121ce7f27909e9a22cdbaedb6e241fa37fd30fe /src/depend.sh
parented4a91bcc1d68c26cd533c4432f93c799b1771c2 (diff)
Improve makefile slightly
Diffstat (limited to 'src/depend.sh')
-rwxr-xr-xsrc/depend.sh14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/depend.sh b/src/depend.sh
deleted file mode 100755
index 7b3caa7..0000000
--- a/src/depend.sh
+++ /dev/null
@@ -1,14 +0,0 @@
1#!/usr/bin/env -S bash
2DIR="$1"
3shift 1
4case "$DIR" in
5 "" | ".")
6 gcc -MM -MG "$@" | sed -e "s@^\(.*\)\.o:@\1.d \1.o:@"
7 ;;
8 *)
9 gcc -MM -MG "$@" | sed -e "s@^\(.*\)\.o:@$DIR/\1.d $DIR/\1.o:@"
10 ;;
11esac
12
13# Shamelessly stolen from Peter Miller's "Recursive Make Considered Harmful"
14 # https://web.archive.org/web/20250404190928/https://aegis.sourceforge.net/auug97.pdf \ No newline at end of file