Results 1 to 2 of 2

Thread: How to include a Makefile with another Makefile | ver: Qt 4.3.3

  1. #1
    Join Date
    Apr 2010
    Posts
    16
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How to include a Makefile with another Makefile | ver: Qt 4.3.3

    Hi,

    I have two projects A and B. B has dependency with A, Right now I build A and then proceed to build B.
    If I build project B, project A should be built automatically. I tried to add INCLUDEPATH of Project’s A Makefile path in B’s Makefile but I get “No rule to make target” error, when I execute B’s Makefile

    Any ideas to resolve this dependency?

    -vels

  2. #2
    Join Date
    Apr 2010
    Posts
    16
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Post Re: How to include a Makefile with another Makefile | ver: Qt 4.3.3

    solved by adding depdency target to phony target

    .PHONY: all Bprj Aprj clean

    all: Bprj Aprj

    Bprj: Aprj
    cd Bprj && qmake && make

    Aprj:
    cd Aprj && make non-qt-target

    clean:
    cd Bprj && qmake && make clean
    cd Aprj && make clean

Similar Threads

  1. Replies: 1
    Last Post: 31st March 2011, 18:38
  2. Replies: 0
    Last Post: 12th October 2010, 04:14
  3. makefile without using QMake
    By Rayven in forum Qt Programming
    Replies: 2
    Last Post: 6th April 2010, 22:04
  4. [qmake] Generate Makefile with include $(ORACLE_HOME)/precomp/env_precomp.mk
    By paulocarvalho_br_2009 in forum Qt Programming
    Replies: 10
    Last Post: 21st May 2009, 16:52
  5. Replies: 3
    Last Post: 6th February 2008, 12:53

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.