]> git.tue.mpg.de Git - paraslash.git/commitdiff
Introduce clean2 target.
authorAndre Noll <maan@systemlinux.org>
Thu, 1 Oct 2009 00:07:16 +0000 (02:07 +0200)
committerAndre Noll <maan@systemlinux.org>
Thu, 1 Oct 2009 00:07:16 +0000 (02:07 +0200)
This makes the clean target remove objects and binaries only. The new
clean2 target removes in addition the man dir and the object dir
(hence all .d files) completely.

Makefile.in

index b156d1a7efb0d3d3def4e562767cfc4c51b15142..d71c0c9a2c8b34cd7cb4750b1d6f213970ce8789 100644 (file)
@@ -202,19 +202,22 @@ para_afh: $(afh_objs)
        $(CC) $(LDFLAGS) -o $@ $(afh_objs) @afh_ldflags@
 
 clean:
-       rm -f $(BINARIES)
-       rm -f *_command_list.*
+       rm -f $(BINARIES) $(object_dir)/*.o
+
+clean2: clean
        rm -rf man $(object_dir)
-distclean: clean
+       rm -f *_command_list.*
+
+distclean: clean2
        rm -f Makefile autoscan.log config.status config.log && \
-       rm -rf cmdline autom4te.cache aclocal.m4
+       rm -rf autom4te.cache aclocal.m4
        rm -f GPATH GRTAGS GSYMS GTAGS
 
 maintainer-clean: distclean
        rm -f $(ggo_generated) *.tar.bz2 \
                config.h configure \
                config.h.in skencil/*.pdf skencil/*.ps
-       rm -rf web_sync
+       rm -rf web_sync $(cmdline_dir)
 
 install: all man
        mkdir -p $(BINDIR) $(MANDIR)