Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to add lupdate and lrelease to makefile as a batch process
Forum Updated to NodeBB v4.3 + New Features

How to add lupdate and lrelease to makefile as a batch process

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    astodolski
    wrote on last edited by
    #1

    Is there a way to add the lupdate and lrelease to the build process so one would only need to call make (nmake in my case)? Currently it looks like it can done on a command line or from qcreator. I am trying to eliminate a couple of steps.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Anumar
      wrote on last edited by
      #2

      About lrelease - I'm using such code in my .pro file:

      ".SUFFIXES".depends = .ts .qm
      ".ts.qm".commands = lrelease -qm $@ $<
      QMAKE_EXTRA_TARGETS += ".SUFFIXES" ".ts.qm"

      locale.depends = $$replace(TRANSLATIONS, ".ts", ".qm")
      QMAKE_EXTRA_TARGETS += locale

      all.depends = locale
      QMAKE_EXTRA_TARGETS += all

      1 Reply Last reply
      0
      • A Offline
        A Offline
        astodolski
        wrote on last edited by
        #3

        Thanks for responding. However, I don't see where the .pro additions created any extra instructions for the makefile to do anything. I want to mention again that I am using nmake via Win 7.1 SDK. Is your response for a Linux platform?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          astodolski
          wrote on last edited by
          #4

          Your code doesn't work.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved