Making make depend easy

Autrijus,

I'd like for it to be easy for a Makefile to know all the dependencies
of a pp-generated executable, since mine depends on a large number of
locally maintained .pm files.  I just modified pp by adding a new
option which then results in this code being executed right after the
call to Module::ScanDeps (I named the option -m after gcc's -M, since
-M was already taken for pp, but probably --depend would be better):

    if ($Options->{m}) {
        print join(" \\\n\t", map($map{$_}{file}, keys %map))."\n";
        exit 0;
    }

I then put this into my Makefile:

myapp.dep:
        echo -n "myapp.exe: " > myapp.dep
        $(PP) $(PPFLAGS) -m myapp.pl >> myapp.dep

-include myapp.dep

Probably there is a less kludgy way to do this, and I'd love to see it
in a future release of PAR.  Until then, though, I'm happy to use my
local hack.

Is there already a way to do this that I'm missing?

Thanks,

Barry
0
barry
4/6/2003 3:07:27 AM
perl.par 1143 articles. 0 followers. Follow

0 Replies
299 Views

Similar Articles

[PageSpeed] 59

Reply:

Similar Artilces:

Making should be make
Name: Scott Melton Email: scott_rides_againatyahoodotcom Product: Firefox Summary: Making should be make Comments: The opening page for Bugzilla is poorly worded. http://www.mozilla.org/projects/seamonkey/start/ The second line: If you want to help making this application even better, we would encourage you to take part in the should be MAKE, not MAKING Browser Details: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070222 SeaMonkey/1.1.1 ...

I find make a multi-column status bar at the bottom of window easy in VB. But how can I make it in PowerBuilder?
I find make a multi-column status bar at the bottom of window easily in VB. But how can I make it in PowerBuilder? Any advice is appreciate. Probably the simplest method would be to create a standard visual user object based on a text object. Add some object methods to set the text. You can them write code in the resize event of your window to place the user object wherever you need it on the screen, and call the object methods to set the text. HTH Sanjiv. <salad_yfz> wrote in message news:BC9A3328474CC5020010BDB085256A7A.0010BDC285256A7A@webforums... > I find make...

How Do I make I make this validation work?
HiI have a textbox that is for email. I want to make sure that something has been entered in it. The thing is though an email address is optional on my form until the user clicks click the radio button(that represents "Do you want a email response").So I don't think I can stick a required field validator on that area since it will always go off. I tried to make a custom validtor but that did not work too well since it seems to get activated once you click on the textbox and start typeing away and then leave that box.So I am not sure how I could make it check this. I am doing th...

How to make RPMs of PAR (and PAR::Dist)
[ This is about packaging PAR rather than PAR, if it's off topic then please let me know. Mike ] I am maintaining systems using Red Hat 9 as the base operating system, and am trying to keep all of the software packaged as RPMs for ease of administration. My current favourite tool is cpan2rpm, which generates spec files and builds RPMs from CPAN quite well. cpan2rpm doesn't seem to be able to deal with PAR and PAR::Dist. I wondered if anyone on the list has already generated spec files for PAR and PAR::Dist so that I can package the modules up for work (or hints for...

Why not make this easy?
I'm pretty new at DNN and .Net 2.0. I have earlier innstalled DNN 2.x.x on my server with .Net 1.x. I've read about the "revolution" that .Net 2.0 is, and have innstalled it on my server with no obvious hickups. BUT, how do I innstall DNN 3.x.x made for .Net 2.0? I've browsed trough this forum (a few pages), and the DNN website, but can't seem to find an easy HowTo install DNN 3.x.x on .Net 2.0. Am I just stupid and miss something obvious? Downloaded the DNN 3.x.x and unzipped it to my inetpub folder (use XP Pro with SP2, .Net 2.0 innstalled, sql2kdeskp3 innstalled) and...

Why not make it easy
Name: Delbert Nantz Email: skipper48athughesdotnet Product: Thunderbird Summary: Why not make it easy Comments: Why does most every thing I want to do to change from Outlook Express to Thunderbird make for endless reading I don't have time for. All I want to do right now is this...if I forward an email I want to clean it up so the previous peoples address are not there and all other junk it has picked up on it's way to me. This makes no since to me for anyone wanting to clean up the internet a little at a time. I am about to give up on Thunderbird for about the fo...

how to make a make a snp report?
below is my code behind. I get my access mdb to open but how do i open a report and convert it to a snp file? also... since i am using "Inherits System.Web.UI.Page" does that mean i could use a textbox as method of sending a prama to my codebehind? Imports Microsoft.VisualBasic Imports System.Diagnostics Partial Class _Default 'notice the class names now matchInherits System.Web.UI.Page Protected Sub Button8_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button8.clickDim access As New Process access.StartInfo.FileName = "C:\Documents and Setti...

Make Dependencies
Lately I've been *using* Inline instead of working on it. And I've noticed something. Inline works well in the following situations: - Writing new C code in Perl. - Binding Perl to old (stable) external C libraries. Where it doesn't do as good is when you are developing an external library *and* developing Inline C/Perl at the same time. The problem is that when you recompile the external stuff, the Inline stuff doesn't automatically recompile. You need to remember to use the 'FORCE' option/shortcut to rebuild it. One way to solve this is with a 'DEPS...

make ok / make nok
Shouldn't 'make ok' and 'make nok' also try to find out the version of the C compiler used if it's not gcc. Some examples: HP-UX: swlist -l bundle | grep B3901BA 11.00: B3901BA B.11.01.07 HP C/ANSI C Developer's Bundle for HP-UX 11.00 (S800) 10.20: B3901BA B.10.20.14 HP C/ANSI C Developer's Bundle for HP-UX 10.20 (S800) AIX: lslpp -L | grep 'C for AIX' 4.3.2: vac.C 4.4.0.2 C C for AIX Compiler 4.2.1: xlC.C 3.1.4.0 C C for AIX Compiler OSF/1: setld -i | grep ^OSFCMPLRS; cc -V | head -3 OSFCMPLRS425 instal...

MAKE
Hello, i am writing my first app for palm os with mobilink. I have ran the sqlpp and tried to 'make' my app in codewarrior 6. I get the following error... Error: Illegal use of precompiled header ulstore.h line 654 } This file sits in the Sql Anywhere/h folder. I am using SQL Anywhere 7. Any ideas ? JK Please always include version information: Target operating system Palm OS 3.5 Codewarrior CW6 Release (ie service pack) ASA - 7.0.1.918 (Always include the BUILD number 918) First thing I would recommend is to make sure you are using ASA 7.0.1.918 at ...

make
I have some SUSE appliances and I need to install some software. When I ran the install script it said I need "make" but I cant find it anywhere on the system. Anyone know where I can download a rpm for make? SUSE ver 9 Zippy San Antonio, Tx -- zippdaw2001 ------------------------------------------------------------------------ It's on your installation DVD's in the development section. -- LRE ------------------------------------------------------------------------ LRE's Profile: http://forums.opensuse.org/member.php?userid=1100 Vi...

Make Porting/expand-macro.pl work with a make other than `make`, also Win32 compatibility fixes
--------------040507080907060101050501 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Hello, recently it came to my attention that `Porting/expand-macro.pl` does not work if your `make` tool is named anything other than `make`. The first attached patch changes it so that it loads Config.pm and uses the configured $Config{make} from there. I presume that anybody running `Porting/expand-macro.pl` also knows about how to give `perl` the appropriate Config.pm resp. how to invoke the proper Perl. The second patch assumes that `Porti...

[PATCH] skip t/op/incfilter.t for "make clean;make miniperl;make minitest"
--- t/op/incfilter.t.dist 2006-05-28 14:06:23.000000000 +0300 +++ t/op/incfilter.t 2006-05-28 14:07:17.000000000 +0300 @@ -5,6 +5,10 @@ BEGIN { chdir 't' if -d 't'; @INC = qw(. ../lib); + if ($ENV{PERL_CORE_MINITEST}) { + print "1..0 # Skip: no dynamic loading on miniperl\n"; + exit 0; + } unless (find PerlIO::Layer 'perlio') { print "1..0 # Skip: not perlio\n"; exit 0; Jarkko Hietaniemi wrote: > --- t/op/incfilter.t.dist 2006-05-28 14:06:23.000000000 +0300 > +++ t/op/incfilter.t 2006-05-2...

Times for configure; make; make test
-----BEGIN PGP SIGNED MESSAGE----- Moin, somebody asked a while ago here about times for configure and compile: configure: 1m 19s real (sorry, forgot to write down user time) make: 4m 52s real 4m 23s user 19s sys make test: 4m 45s real 2m 31s user 18s sys Compared to that: time to download latest snapshot: 2m 31s, time to unbzip/untar: about 20 seconds. All in all it took me about 15 minutes from start to end. The system is an Athlon Thunderbird (not the latest generation cal...

Web resources about - Making make depend easy - perl.par

San Bernardino killers: Did she corrupt him? Or vice versa?
Los Angeles Times San Bernardino killers: Did she corrupt him? Or vice versa? Los Angeles Times Syed Rizwan Farook and Tashfeen Malik lived ...

Police Accounts Appear to Differ With Laquan McDonald Shooting Video
NBCNews.com Police Accounts Appear to Differ With Laquan McDonald Shooting Video NBCNews.com The Rev. Jesse Jackson on Saturday called for ...

Taking to the hills: tribal groups face up to climate change
Tashka Yawanawa's Amazonian tribe lived on the plains along the Gregorio River for millennia until a wall of flood water last year forced them ...

Scott Disick Grabs Lunch With Tyga Before Visiting Kim Kardashian
Scott Disick keeps it casual in a blue hoodie while stepping out to grab lunch with Tyga at Il Pastaio on Saturday afternoon (December 5) in ...

The Force is strong with this 'Star Wars: Battlefront' PlayStation 4
Darth Vader isn't the friendliest fellow, but his robo-skull visage pairs well with the all-black look of Sony's PlayStation 4. Sony released ...

‘Final Fantasy VII’ Hits PlayStation 4 Today, Remake Far From Original
When Square Enix and Sony announced that Final Fantasy VII will be making a return in the new generation PlayStation 4 console with better and ...

Gallery: Here are 8 more PlayStation VR games you can look forward to
PlayStation VR games from PSX 2015 PlayStation Experience 2015's keynote was full of supplemental trailers and tidbits of games announced at ...

Three suspected Boko Haram suicide bombers detonate themselves at Chad market
Three female suicide bombers have attacked a busy market full of refugees fleeing Boko Haram on an island in Lake Chad leaving at least 27 people ...

SNL‘s Donald Trump Reads ‘Naughty or Nice’ List in Cold Open
This week’s Saturday Night Live got off to a topical, if not hilarious, start with a cold open dedicated to presidential candidate Donald Trump’s ...

NASA shows the sharpest ever close-up photos of Pluto
I can practically hear you groan more Pluto photos? Well, these are kind of special: they're the sharpest pictures the New Horizons probe took ...

Resources last updated: 12/6/2015 9:04:21 AM