Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Ideas on more foolproof Makefile.PL and generated Makefile

by bojinlund (Monsignor)
on Mar 22, 2012 at 14:33 UTC ( [id://961033]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ifeq "{xxx}" "xxx"
    MAKE_USED = dmake
    ...
    #if... How can nmake be identified?
    #MAKE_USED = nmake
    #endif
    
  2. or download this
    NORL =@# No Output of Recipe Line
    .PHONY: check_used_make_program
    ...
    ifeq "$(MAKE_USED)" "gnumake"
        $(NORL)$(error ERROR: Using $(MAKE_USED) for a Makefile intended f
    +or ?make)
    endif
    
  3. or download this
    ifeq "$(MAKE_USED)" "dmake"
    #               The message is NOT sent to STDERR
        $(NORL)echo ERROR: Using $(MAKE_USED) for a Makefile intended for 
    +?make
        $(assign ERR OR = ERROR) #Generates an error message
    endif
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://961033]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2025-04-25 15:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.