Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Help running a Makefile from within a .sh script? Post 303005284 by Scott on Monday 16th of October 2017 02:11:05 PM
Old 10-16-2017
What if you run the gcc command directly (from the directory where the .c file is)?
Code:
gcc -g -Wall -pedantic -Wextra cfile.c -w -o cfile.out

Show your makefile:
Code:
cat Makefile

(and just to not make the same mistake I did, make sure there are no other makefiles there!)

UPDATE: OK, cool. You're welcome Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

makefile sh script

Hello World ! ! ! I need libraries to use grib files. I only know the C language at the moment and I am working at the University under Red Hat 9.0. I downloaded the g2clib library (the best that I found) but I did not success to run the makefile. Here is the original file. I modified some... (4 Replies)
Discussion started by: Akeson Chihiro
4 Replies

2. Shell Programming and Scripting

embeding shell script in makefile

Hi I am new to shell scripting and makefile. I want a command's output in makefile to process further, can anyone plz suggest me a way ? I want ls -d *.dsm output in a variable and want to process it in makefile itself. It's urgent Thanks In advance (0 Replies)
Discussion started by: madhu12345
0 Replies

3. Shell Programming and Scripting

shell script in makefile

Hi, Can we execute a shell script by makefile. I mean we will write a shell script in a make file and it will be executed when we compile the C++ program using make file. (2 Replies)
Discussion started by: surjyap
2 Replies

4. Shell Programming and Scripting

Shell script makefile

Is there a way to write a makefile for all the source files in a directory with a shell script? (2 Replies)
Discussion started by: zzhan
2 Replies

5. UNIX for Dummies Questions & Answers

error while running a makefile

any good website to know about makefiles (3 Replies)
Discussion started by: raviravula
3 Replies

6. UNIX for Advanced & Expert Users

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 (2 Replies)
Discussion started by: hernandinho
2 Replies

7. Homework & Coursework Questions

Help with Simple Multi-Level Makefile (Extremely New at Makefile)

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. Shell Programming and Scripting

using a Shell Script in a Makefile

Hello, I have a Makefile that converts wrl (vrml) files to html files... how can I use a shell script in that makefile which works on all html files after converting? The Shell Script have to find and replace a String in every createt html file. sorry I'm a Newbie, so I hope someone can... (0 Replies)
Discussion started by: Dan_78
0 Replies

9. Shell Programming and Scripting

Need help with a script to make makefile

How do we create a shell script that creates a makefile? what if we want to use the #include header files too? (2 Replies)
Discussion started by: sslokhan
2 Replies

10. Programming

Problem running a makefile

I have written this makefile and am getting an error saying make nfd gfortran -O -Wall -fbacktrace -fno-align-commons -c -o fd.o fd.f fd.f:49: Error: Can't open included file 'fd.par' make: *** Error 1 The directory structure is as follows . ├── library │ ├── fd │ │ ├──... (3 Replies)
Discussion started by: kristinu
3 Replies
compact(1)						      General Commands Manual							compact(1)

NAME
compact, uncompact, ccat - compact and uncompact files, and cat them SYNOPSIS
[sfile] ... [cfile] ... [cfile] ... DESCRIPTION
compresses the named files using an adaptive Huffman code. If no file names are given, standard input is compacted and sent to the stan- dard output. operates as an on-line algorithm. Each time a byte is read, it is encoded immediately according to the current prefix code. This code is an optimal Huffman code for the set of frequencies seen so far. It is unnecessary to attach a decoding tree in front of the compressed file because the encoder and the decoder start in the same state and stay synchronized. Furthermore, and can operate as fil- ters. In particular, operates as a (very slow) no-op. When an argument file is given, it is compacted, the resulting file is placed in and file is unlinked. The first two bytes of the com- pacted file code the fact that the file is compacted. These bytes are used to prohibit recompaction. The amount of compression to be expected depends on the type of file being compressed. Typical file size reduction (in percent) through compression are: Text, 38%; Pascal Source, 43%; C Source, 36%; and Binary, 19%. restores the original file from a file compressed by If no file names are specified, standard input is uncompacted and sent to the standard output. writes the specified c_file, compressed by to standard output, without uncompressing the file. Operands The commands recognize the following operands: cfile Compacted file. sfile Source file to compact or uncompact. If no file names are given, the commands use standard input and sent to the standard output. places the compacted file in Access Control Lists (ACLs) On systems that implement access control lists, when a new file is created with the effective user and group ID of the caller, the original file's ACL is copied to the new file after being altered to reflect any change in ownership (see acl(5) and aclv(5)). In JFS file systems, files created by or do not inherit their parent directory's default ACL entries (if any), but instead retain their original ACLs. When a file being compacted or uncompacted resides on a JFS file system, and the compacted or uncompacted file resides on an HFS file system (or vice versa), as the result of or the use of or as a filter, optional ACL entries are lost. WARNINGS
On short-file-name systems, the last segment of the file name must contain 12 or fewer characters to allow space for the appended DEPENDENCIES
NFS Access control list entries of networked files are summarized (as returned in by but not copied to the new file (see stat(2)). AUTHOR
was developed by Colin L. Mc Master. FILES
compacted file created by compact, removed by uncompact SEE ALSO
compress(1), pack(1), acl(5), aclv(5). Gallager, Robert G., "Variations on a Theme of Huffman," vol. IT-24, no. 6, November 1978, pp. 668 - 674. compact(1)
All times are GMT -4. The time now is 08:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy