PDA

View Full Version : make clean



Jaguar
12-27-2002, 09:55 AM
I'm using Redhat 7.2, I can't use `make clean' to delete files.o

$ make clean
make: *** No rule to make target `clean'. Stop.

It seems some file missing, my Redhat7.2 brings gcc2.96 as a default compiler. I did not use `make' to install gcc and I do not have the `Makefile'. Anyone who know please tell me, how can I use `make clean'?

Thanks,

Jaguar
12-27-2002, 10:46 AM
Where to keep the `Makefile', which directory?
(I keep my source files in many directories.)

Jaguar
12-27-2002, 11:02 AM
If `Makefile' is text, I can manually create them.
But just want to know where to keep this file, which directory? My source files are in so many directories.
(Meanwhile Im reading my man pages.)

vVv Thanks for your prompt response,

Jaguar
12-27-2002, 11:19 AM
Okay now I switch to cygwin on windows 2K, I have 4 Makefiles in cygwin.
/usr/share/groff/1.17.2/font/devdvi/generate/Makefile
/usr/share/groff/1.17.2/font/devlj4/generate/Makefile
/usr/share/groff/1.17.2/font/devps/generate/Makefile
/usr/share/vim/vim61/macros/maze/Makefile

which file shall I insert?
Thanks,

Jaguar
12-27-2002, 11:35 AM
Those Makefiles are apparently auto-make generated to build those programs.... or do you want to adapt the Makefiles for your own project(s)???
I get you now...
Yes, I want to use it for my own projects.
Now it works fine. I've done it.

vVv Thank you very much.

unixOZ
12-27-2002, 06:44 PM
make uninstall or make distclean are also options