Re: ifeq or ifdef in Makefile problems

From: SM Ryan (wyrmwif_at_tango-sierra-oscar-foxtrot-tango.fake.org)
Date: 09/01/04


Date: Wed, 01 Sep 2004 19:06:30 -0000

vertigo <none@dev.null> wrote:
#
# > Which system is this on? Have you tried GNU make?
# Thanx:)
# i used make insted of gmake :)

I solved this problem a long time ago by doing something which is
apparently too cloddish to be practical.

I use a script file that examines the system and then creates a makefile
specific to the system and installation, and then calls make from within
the script. I can do things like the cc option to create make dependencies
within the script and attach them to the makefile in progress.

Eventually every implementation of make will be an entire scripting
language, but until then you're going to have to cope with dopey old
makes that merely analyze dependencies and build out of date targets.

--
SM Ryan http://www.rawbw.com/~wyrmwif/
But I do believe in this.


Relevant Pages

  • Re: Cross-compiling =?iso-8859-1?Q?f=FCr?= Win32
    ... Andererseits ist das Thema "Rechenknechte" inzwischen derart komplex, ... Nunja, davon entbindet mein Script nicht, denn es nützt ja nur denen ... Aber er muss diese Arbeit nur noch für das eigentlich Programm machen, ... Programme in maschinenlesbaren Scripten namens 'Makefile' abzulegen, ...
    (de.comp.os.unix.programming)
  • Re: Compiling ADOM Sage in Xandros
    ... After a fair amount of tweaking I've gotten ADOM set up ... "Makefile" from the terminal I get a long string of messages saying ... it should recognize the Makefile and begin processing commands. ... configure script which checks your system and creates or modifies the ...
    (rec.games.roguelike.adom)
  • Run Unix shell command $ parse command line arguments in python
    ... MAKEFILE does. ... I want to write a python script to replace this Makefile. ... How to Run Unix shell command from python. ...
    (comp.lang.python)
  • Re: [PATCH] Saving ARCH and CROSS_COMPILE in generated Makefile
    ... > Use a Makefile called either makefile or GNUMakefile to call make with ... No kmake script required. ... to set ARCH and CROSS_COMPILE to match those used during compilation? ...
    (Linux-Kernel)
  • Re: scotty tnm dll for windows
    ... I had to make the following changes to the makefile to ... I've cut this down from a longer script without testing, ... # make install ... Please get root permissions ...
    (comp.lang.tcl)