I have a Makefile where a single suffix rule is defined:
And I'd like to create another where an additional flag is added to compile in SMP. Right now, I have to do it like this:
It seems like there must be an easier way to do this with a linking rule, but I'm not sure how. Are there any Makefile gurus out there who could give me some ideas on how to make this work?
Hi,
This stems from the following thread https://www.unix.com/showthread.php?t=18299
I have a makefile which makes either executables or a shared library.
i.e. make -f unix.mak will create the executables and
make -f unix.mak libolsv will create the shared library.
Since these have to be... (4 Replies)
I'm trying to define a variable named sin
I already have a variable named cos, which has the value "hello"
I want sin to have the value of "hellothere",
so sin would be something like
sin = $cos & "there"
but I'm not sure that I know the syntax.
Can anyone help?
:confused: (4 Replies)
Hey all, I was wondering if someone would take a look at this script I'm working on. I don't know if i have the syntax correct for my variables and if the for loop is written correctly.
any assistance would be greatly appreciated.
#!/usr/bin/bash
###########################################... (12 Replies)
Hi, I'm trying to run the module load command in a Makefile and i'm getting the following error:
make: module: command not found
Why is this? Is there any way to run this command in a Makefile?
NOTE: command - module load msjava/sunjdk/1.5.0 works fine outside of the Makefile (2 Replies)
Is it possible to send a custom signal to a process?
e.g. Send signal 9999 to my process, which handles it with some custom handler.
How would one do this? (12 Replies)
I can't seem to get a rule in my Makefile to ever run... even if I change the rule to force make to re-enter the rule, or if I change the dependent files the rule depends on. Any ideas why the second rule is being ignored here?
#MAKEFILES = $(DIRS:%=$(ROOT)/%/Makefile)
#$(MAKEFILES):... (0 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Basically, the prompt is make a makefile with various sub makefiles in their respective subdirectories. All code... (1 Reply)
Hi All,
I have a trivial question but I dont know how to solve it.
So basically I'm working on a USB key and I have a directory with some scripts which I use to work on files present in other directories within the USB or sometimes on the main harddisk too. The problem is every time I have to... (3 Replies)
I am trying to create a makefile to build a program and am getting the following error:
make -f tsimplex.mk
make: *** No rule to make target `/main/tsimplex_main.cpp', needed by `tsimplex_main.o'. Stop.
OPSYS = $(shell uname -s )
TARGET = tsimplex
ROOTDIR = ../../..
GTSDIR =... (1 Reply)
Hi all,
I want to know the entry point (default rule to be executed) in a makefile once all defined variables are evaluated. I do not have all: in my makefile and I give
"make" without any parameter in command line.
thanks........ (3 Replies)
Discussion started by: useless79
3 Replies
LEARN ABOUT CENTOS
lupdate
lupdate(1) General Commands Manual lupdate(1)NAME
lupdate - update Qt Linguist translation files
SYNOPSIS
lupdate [ options ] project-file
lupdate [ options ] source-files -ts ts-files
DESCRIPTION
This page documents the Qt Linguist Update tool for the Qt GUI toolkit. Lupdate reads a qmake/tmake project file (.pro file), finds the
translatable strings in the specified source, header and interface files, and updates the translation files (.ts files) specified in it.
The translation files are given to the translator who uses Qt Linguist to read the files and insert the translations.
The .ts file format is a simple human-readable XML format that can be used with version control systems if required.
OPTIONS -help Display the usage and exit.
-noobsolete
Drop all obsolete strings.
-verbose
Explain what is being done.
-version
Display the version of lupdate and exit.
USAGE
Here is an example .pro file that can be given to lupdate:
HEADERS = funnydialog.h
wackywidget.h
SOURCES = funnydialog.cpp
main.cpp
wackywidget.cpp
FORMS = fancybox.ui
TRANSLATIONS = gnomovision_dk.ts
gnomovision_fi.ts
gnomovision_no.ts
gnomovision_se.ts
When running lupdate on this project file, the translatable strings in all the files listed in the HEADERS, SOURCES and FORMS entries will
be put in the translation files listed in the TRANSLATIONS entry. Previous translations will be reused as far as possible, and translated
strings that have vanished from the source files are marked obsolete.
Lupdate can also be invoked with a list of C++ source files, .ui files and .ts files:
lupdate *.cpp *.h *.ui -ts gnomovision_dk.ts
SEE ALSO lrelease(1) and http://doc.trolltech.com/i18n.html
Trolltech AS 18 October 2001 lupdate(1)