diff options
author | John Ankarström <john@ankarstrom.se> | 2022-07-15 16:57:15 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-07-15 16:57:15 +0200 |
commit | d00f8b35b4838ba7c6bf00b7b211f463810f4ae5 (patch) | |
tree | ee9d04eb06d2871d75b72cd7b7705ef061eaaede /makedeps.pl | |
parent | f61e83d936ebab185b09682f922aa58734153761 (diff) | |
download | EpisodeBrowser-d00f8b35b4838ba7c6bf00b7b211f463810f4ae5.tar.gz |
Improve makedeps script.
Diffstat (limited to 'makedeps.pl')
-rw-r--r-- | makedeps.pl | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/makedeps.pl b/makedeps.pl deleted file mode 100644 index 8956e81..0000000 --- a/makedeps.pl +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env perl - -use strict; -use warnings; - -open my $fh, ">", "deps.mk"; -print $fh "# This file is generated by makedeps.pl.\n"; -while (my $f = glob("c/*.cpp")) { - open my $gh, "<", $f; - $f =~ s,^c/,,; - $f =~ s/\.cpp$//; - print $fh "b/$f.obj: c/$f.cpp"; - while ($_ = <$gh>) { - next if /^$/; - goto n if not /#/; - print $fh " c/$1" if /^#include\s+"([^"]+)"/; - } - n: - print $fh "\n"; -} |