Package: mmake / 2.3-7

mmake-output-file.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Description: - Allow output of other file than Makefile.
Author: Matt Zimmerman <mdz@debian.org>
Reviewed-by: Giovani Agusuto Ferreira <giovani@riseup.net>
Last-Update: 2016-07-02
Index: mmake-2.3/mmake.in
===================================================================
--- mmake-2.3.orig/mmake.in
+++ mmake-2.3/mmake.in
@@ -224,7 +224,7 @@ Jan-Henrik Haukeland <hauk@tildeslash.co
 =cut
 
 use strict;
-use vars qw($opt_d $opt_v);
+use vars qw($opt_d $opt_v $opt_o);
 use Getopt::Std;
 require 5.000;                   # Need this perl version at least
 
@@ -248,13 +248,16 @@ my @resources=     ();           # Array
 my $toplevel=      "";           # Defined if toplevel java files
 
 # Parse command line options
-getopts("dv") || die "Usage: $PROG [ -d | -v ]\n";
+getopts("dvo:") || die "Usage: $PROG [ -d | -v ]\n";
 
 if ( defined $opt_v ) {
   print "This is mmake, version $VERSION\n";
   exit(0);
 }
 
+if ( defined $opt_o ) {
+  $M = $opt_o;
+}
 
 # ---------------------
 # Assign macro defaults