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.
$(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)