make clean

This is a discussion on make clean within the Linux Programming forums, part of the Platform Specific Boards category; I'm using Redhat 7.2, I can't use `make clean' to delete files.o $ make clean make: *** No rule to ...

  1. #1
    still a n00b Jaguar's Avatar
    Join Date
    Jun 2002
    Posts
    187

    make clean

    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,
    slackware 10.0; kernel 2.6.7
    gcc 3.4.0; glibc 2.3.2; vim editor
    migrating to freebsd 5.4

  2. #2
    still a n00b Jaguar's Avatar
    Join Date
    Jun 2002
    Posts
    187
    Where to keep the `Makefile', which directory?
    (I keep my source files in many directories.)
    slackware 10.0; kernel 2.6.7
    gcc 3.4.0; glibc 2.3.2; vim editor
    migrating to freebsd 5.4

  3. #3
    still a n00b Jaguar's Avatar
    Join Date
    Jun 2002
    Posts
    187
    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,
    slackware 10.0; kernel 2.6.7
    gcc 3.4.0; glibc 2.3.2; vim editor
    migrating to freebsd 5.4

  4. #4
    still a n00b Jaguar's Avatar
    Join Date
    Jun 2002
    Posts
    187
    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,
    slackware 10.0; kernel 2.6.7
    gcc 3.4.0; glibc 2.3.2; vim editor
    migrating to freebsd 5.4

  5. #5
    still a n00b Jaguar's Avatar
    Join Date
    Jun 2002
    Posts
    187
    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.
    slackware 10.0; kernel 2.6.7
    gcc 3.4.0; glibc 2.3.2; vim editor
    migrating to freebsd 5.4

  6. #6
    Registered User unixOZ's Avatar
    Join Date
    Feb 2002
    Posts
    91
    make uninstall or make distclean are also options

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to make a windows application
    By crvenkapa in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2007, 10:59 AM
  2. "Cannot make pipe"
    By crepincdotcom in forum C Programming
    Replies: 5
    Last Post: 08-16-2004, 01:43 PM
  3. HELP!wanting to make full screen game windowed
    By rented in forum Game Programming
    Replies: 3
    Last Post: 06-11-2004, 05:19 AM
  4. make all rule
    By duffy in forum C Programming
    Replies: 9
    Last Post: 09-11-2003, 02:05 PM
  5. Replies: 6
    Last Post: 04-20-2002, 07:35 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21