Questions tagged [makefile]

Questions relating to makefiles, (The file that contains the instructions for make)

182 questions
28
votes
6 answers

Error when installing Makefile: "make: *** No targets specified and no makefile found. Stop."

In short while I run the make command it says: nir@nir:~/Downloads/xf86-video-intel-2.17.0$ make make: *** No targets specified and no makefile found. Stop. I looked inside the folder-xf86-video-intel-2.17.0 and there is a file named…
yinon
  • 1,229
14
votes
1 answer

Detect if its Ubuntu Linux OS in Makefile

I want to create a makefile that will compile my objects and name them according to the Linux distro (e.g. Suse, RedHat, or Ubuntu). How can I detect if the OS is Ubuntu or not?
RRR
  • 265
10
votes
4 answers

My makefile results in: No rule to make target `arch/x86/tools/relocs.c', needed

I am using Ubuntu 12.04. I wrote a simple hello world kernel module (hello.c). I wrote the folllowing makefile for it: obj-m+=hello.o KDIR:= /usr/src/linux-headers-3.2.0-24-generic-pae all: $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules clean: …
AvinashK
  • 401
9
votes
3 answers

What is a makefile exactly and how we can create one?

I know this is a silly question, but since I am trying so hard to learn linux by myself, I need some help from you fellows. I found this task on the internet and I am trying to solve it but I don't understand exactly how can I use makefiles in…
Adrian George
  • 3,531
  • 7
  • 23
  • 30
8
votes
1 answer

Using makefile wildcard command for file names with spaces

I have a makefile that I use to compress pictures: src=$(wildcard Photos/*.jpg) $(wildcard Photos/*.JPG) out=$(subst Photos,Compressed,$(src)) all : $(out) clean: @rmdir -r Compressed Compressed: @mkdir Compressed Compressed/%.jpg:…
iBelieve
  • 5,384
3
votes
1 answer

How do I make the 'make' command work?

I am trying "Linux Kernel Module Programming - Compiling the Module" as in this youtube video. First I created a hello.c program. Then I used the command #gedit Makefile. It opens a window which is empty in gedit. I tried to copy the same commands…
Raady
  • 151
2
votes
0 answers

How to install perf in make/build kernel process from source?

I am building an customized ubuntu from source files that include the tools/perf. What should I change in makefile or build process to install perf tool automatically in the building customized ubuntu process?
2
votes
3 answers

How to create a makefile with a shell script

I have a shell script, and would like to convert it to a makefile so that it can be executed with the command 'make all'. How would I go about this? Thanks
Duby
  • 41
0
votes
1 answer

Writing a makefile

I want to write a makefile that has a build rule, a run rule and a clean (delete the exe file) rule . This is quite a simple task, but how can one incorporate some rule in the makefile such that the executable is only created if it doesn't already…
user43389
  • 643
0
votes
1 answer

How do I follow these "makefile" instructions?

I am a beginner of Linux. I don't know to handle the following instructions, please teach me in details. The instructions are below: Go to the mmed-release-0.1/src/. Modify the makefile to set appropriate PATHs for Vlfeat, Cplex, GSL Cblas. To…
0
votes
1 answer

Makefile:372: install-zenmap Error 1

help please followed instructions get this error [Makefile:372: install-zenmap] Error 1 is there a fix
0
votes
1 answer

Make error with Grib2 and Netcdf

I am trying to install a software package designed for weather modeling. This can be found here https://github.com/usgs/volcano-ash3d-metreader. The issue comes when I am trying to execute the 'Make all' command. When running I get the output of: …
LvnTrvr
  • 25
  • 1
  • 5
0
votes
1 answer

The following Makefile is not working and I am not sure what's going on

obj-m += task.o all: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules clean: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean Makefile:3: *** missing separator. Stop.