07-24-2008
Makefile problem - How to run module load in a Makefile
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
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I have a makefile which looks like this
ProcessA :
commands
touch pro1
ProcessB : pro1
commands
touch pro2
ProcessC: pro3
commands
and after some runs, i wish only pro3 to run and I check that "pro1" and "pro2" are there in the directory, but still, if i give make... (3 Replies)
Discussion started by: sskb
3 Replies
2. Programming
Hi, I am very new with makefile topics , maybe this is a very symple question...
I have this code wich compile very good ( I get it from the net), I will call it code A.
I have to add it with a program that is all ready in use, (code B) that also compile good. When I put together it doesnt... (7 Replies)
Discussion started by: pmoren
7 Replies
3. Programming
My make file is
CFLAGS = -Wall -g
LDFLAGS = -lm
CC = g++
all: server client
rc4.o: rc4.cpp rc4.h
${CC} ${CFLAGS} -c rc4.cpp
server.o: server.cpp rc4.h
${CC} ${CFLAGS} -c .cpp
client.o: client.cpp rc4.h
${CC} ${CFLAGS} -c client.cpp
server: server.o... (2 Replies)
Discussion started by: neerajgoyal12
2 Replies
4. Programming
Hello everybody,
Currently I'm learning how to build projects (C programming) with GNU make. I have a problem with one Makefile and I would appreciate if you could kindly give me a hand. Here is the environment:
OS: Redhat linux 5
compiler: gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)... (2 Replies)
Discussion started by: dariyoosh
2 Replies
5. UNIX for Advanced & Expert Users
I have 2 libraries in 2 different directories that I build with Makefiles.
library B depends on library A. If I modify a .cpp file in library A and run lib B's Makefile can I have B's makefile to automatically rebuild library A?
I am now rebuilding A, followed by B... but I'd like B to... (0 Replies)
Discussion started by: wwuster
0 Replies
6. Programming
Hi,
Here is my makefile http://pastie.org/1104332. I am trying to compile different .c files and .s files (assembly files) from different sub directories into E:/em35x/build/mfg-sample-app-cortexm3-iar-em357-em3xx-dev0680/ then the linker should link all the .o files from the build directory... (1 Reply)
Discussion started by: blade2008
1 Replies
7. Homework & Coursework Questions
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)
Discussion started by: Tatl
1 Replies
8. Emergency UNIX and Linux Support
I had created a Makefile for my project. my project file hierarchy is like this:
1. a source folder with main.c and Makefile in it
2. and a top level Makefile
here is the Makefile in src folder
all: program
program: main.c
gcc -o program main.c
clean:
rm programand here is top... (3 Replies)
Discussion started by: majid.merkava
3 Replies
9. Shell Programming and Scripting
I want to run a target defined in a shell script. The shell script name is 'ua.sc' and the target in it is 'N' i.e. (ua N) throught a makefile. How can i do it so that i can run it with a make target. (3 Replies)
Discussion started by: vineet.dhingra
3 Replies
10. AIX
I have a make file for C program, which always gives the error
ld: 0711-738 ERROR: Input file ../src/file_name.o
XCOFF32 object files are not allowed in 64 mode
Does anybody know the problem?
Thanks for contribution (2 Replies)
Discussion started by: digioleg54
2 Replies
LEARN ABOUT SUSE
pptemplate
PPTEMPLATE(1) User Contributed Perl Documentation PPTEMPLATE(1)
NAME
pptemplate - script to generate Makefile.PL and PP file skeleton
SYNOPSIS
# generate Makefile.PL and mymodule.pd in CWD
pptemplate PDL::MyModule;
DESCRIPTION
The pptemplate script is the easiest way to start a new module for PDL that contains PP code (see also PDL::PP). The usage is simply
pptemplate modulename;
As a result pptemplate will generate a perl Makefile for the new module (Makefile.PL) that contains the minimal structure to generate a
module from PP code and also a skeleton file for your new module.
The file will be called mymod.pd if you called "pptemplate" as
pptemplate PDL::CleverAlgs::Mymod;
I suppose you can work out the naming rule ";)". If not resort to experimentation or the source code.
"pptemplate" will refuse to overwrite existing files of the same name to avoid accidents. Move them out of the way if you really want to
scrap them.
Options
Currently there is only the "-i" option which switches "pptemplate" into the so called internal mode. It should only be used when you are
starting a new module within the main PDL tree that is supposed to be part of the PDL distribution and the normal PDL build process, e.g.
cd PDL/IO;
mkdir Mpthree; cd Mpthree;
pptemplate -i PDL::IO::Mpthree;
BUGS
Maybe ";)". Feedback and bug reports are welcome.
COPYRIGHT
Copyright (c) 2001, Christian Soeller. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified
under the same terms as PDL itself (see http://pdl.perl.org).
perl v5.12.1 2010-07-05 PPTEMPLATE(1)