aboutsummaryrefslogtreecommitdiff
path: root/makedeps.pl
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-15 16:57:15 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-15 16:57:15 +0200
commitd00f8b35b4838ba7c6bf00b7b211f463810f4ae5 (patch)
treeee9d04eb06d2871d75b72cd7b7705ef061eaaede /makedeps.pl
parentf61e83d936ebab185b09682f922aa58734153761 (diff)
downloadEpisodeBrowser-d00f8b35b4838ba7c6bf00b7b211f463810f4ae5.tar.gz
Improve makedeps script.
Diffstat (limited to 'makedeps.pl')
-rw-r--r--makedeps.pl20
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";
-}