makefile

"make" like scheduling sequences of tasks

The company I work for has lots of "complicated" file based batch processes, with sequences of files such as: take file A fetch file B join fields in file A to file B to make file C run some heuristics on file C to make file D upload file D to server X build a report based on files D and A and mail it to [email protected] Each step m...

Python Script Executed with Makefile

Hi all, I am writing python scripts and execute them in a Makefile. The python script is used to process data in a pipeline. I would like Makefile to execute the script every time I make a change to my python scripts. Does anyone have an idea of how to do this? Thanks a lot! ...

Compile Cygwin project in Eclipse

I have a c++ Project that was compiled with the cygwin toolchain, now I want to use Eclipse to compile and test it. If I create a project (cygwin toolchain is set in the options) I get the error: make: *** No rule to make target `all'. 7wWin line 0 C/C++ Problem In Cygwin I use: cd $BUILDDIR make make install Can Eclipse create i...

Import Makefile settings to VS2005 IDE

Hi, I'm a newbie in this vast world of programming. I've been given some codes in C which are compiled & linked using makefile. I can compile the code using nmake from VS2005. Now i want to build the program in C++ VS2005 IDE. From a quick google search, there seems to be no automated functions in importing makefile settings to VS IDE. ...

How to conditional set up a Makefile variable by testing if a file exists

For example: I want: if file1 exists: CLEAN_SRC = *.h file3 else CLEAN_SRC = ...

How can I configure my makefile for debug and release builds?

I have the following makefile for my project, and I'd like to configure it for release and debug builds. In my code, I have lots of #ifdef DEBUG macros in place, so it's simply a matter of setting this macro and adding the '-g3 -gdwarf2' flags to the compilers. How can I do this? EDIT: Just to clarify, when I say release/debug builds, I...

In very simple gtk2 c app, problem setting up gnu build tools

UPDATE: First problem solved, second one described at the bottom of this post. UPDATE2: Second problem solved as well. I'm trying to learn about setting up GNU build tools (autoconf/automake) for a very simple GTK+2 C application. I've followed this tutorial and this one that deals with sub directories, but I'm running into a problem ...

$+ in makefile

What does $+ in a GNU makefile mean? Also, please give me some good lookup manual for writing makefiles. ...

Is an empty target rule a viable substitute for .DEFAULT_GOAL in GNU Make?

GNU Make version 3.81 introduced a special variable named .DEFAULT_GOAL that can be used to tell Make which goal (or target) should be built if no target was specified on the command line. Otherwise Make will simply make the first target it encounters. Consider: bar: a b c ${MAKE_BAR_COMMANDS} foo: x y z ${MAKE_FOO_CO...

Compilng C/C++ makefile files under Windows (XP)

I'm trying to use a Python library (pyMedia) that has some non-Python requisites libraries. (libogg, libvorbis, liblame, and libfaad2 - this isn't relevant to the question specifically). libogg requires you to manually compile it from the source and comes with a makefile. I have GCC installed for Windows. How would I go about compiling ...

Making a Makefile

How I can make a Makefile, because it's the best way when you distribute a program by source code. Remember that this is for a C++ program and I'm starting in the C development world. But is it possible to make a Makefile for my Python programs? ...

VIM: is there an easy way to manage Visual Studio solutions / makefile projects from Vim?

Hello, I tried using Visual Studio instead of VIM(+plugins), but to be honest - the only advantage of VS over VIM is it's ability to automatically manage my project. I know of existence of ViEmu for VS, but I would like to do the opposite - is there any way to manage projects from within VIM? I tried both c.vim plugin and Project pl...

Makefile – build all possible targets

I'd like to use a makefile to convert a set of svgs to pngs. The following snippet shows what I've done so far. %.png: origs/%.svg convert -resize "32x" $< $@ make foo.png works now. but I'm stuck with the all target. I'd like to convert everything (all svgs that is) with a single command. In all examples I've found the all targ...

Makefiles with source files in different directories

I have a project where the directory structure is like this: $projectroot | +---------------+----------------+ | | | part1/ part2/ part3/ | | | +...

Makefile not working with cygwin

I just installed cygwin with C++ compiler and Perl on my windows machine. Whenever trying to compile the C++ files with the makefile I get the following error: >make Cant find C:\Program on PATH Not sure what path is exactly missing and where I can change it... ...

Makefile, source in multiple directories, dependency problem

I am experimenting with makefile...mainly when sources are in many directories I have following situation... project/src/ contains directory A, B, Main Directory A contains A.h and A.cpp; B contains B.cpp and B.h; and Test contains test.cpp A.cpp includes A.h; B.cpp includes B.h and Main.cpp includes A.h, B.h project/lib contains li...

Makefile Pattern Issue

My compressed audio cafs, which should be copied by the 4th rule below, are being processed prematurely by the second rule because Assets/Audio/Compressed/Blah.caf matches the second rule (but I only want files in Assets/Audio (no deeper) to be handled by this rule). Ideas? I don't really want to simply change the rule order (as I think ...

How do I invoke a GNU make macro created using define?

Is there any difference in the two ways GREP is invoked in my Makefile? Any reason I should use one or the other? Both seem to produce the same result. define GREP $(word 3,$(shell echo "#define FOO 0xfff00100")) endef all: @echo $(GREP) @echo $(call GREP) ...

Makefile rule to build with same name, but different directory

I would like a rule something like: build/%.ext: src/%.ext action I have one directory of files in a folder that I want to optimize and then output to a different folder. However, the files have the same name in the input and output folders. I have tried various iterations of the rule above, but make will either always or never re...

How to compile open source framework in Visual Studio C++, that has "makefile" only and no solution file?

How to compile open source framework in Visual Studio C++, that has "makefile" only and no solution file? ...