DIRS = src doc man etc help: @echo "Pick one of the following targets:" @echo -e "\tmake config\t\t- configure and check system setup" @echo -e "\tmake all\t\t- build modules and programs" @echo -e "\tmake install\t\t- install modules and programs" @echo -e "\tmake clean\t\t- remove old binaries and dependency files" all: set -e; for d in $(DIRS); do $(MAKE) -C $$d ; done clean: touch config.mk set -e; for d in $(DIRS); do $(MAKE) -C $$d clean ; done rm -f core core.* *.o .*.o *.s *.a .depend tmp_make *~ tags for i in *_obj; do if [ -d $i ]; then rm -fr $i; fi; done rm -f config.mk install: set -e; for d in $(DIRS); do $(MAKE) -C $$d install ; done depmod -a config: @touch config.mk @./Configure tags: ctags -R