
.PHONY : clean_curdir clean distclean_curdir distclean

# Delete object and executable files
# Do not run rm -f ... if variables are empty
clean_curdir :
	test -z "$(adINTFILES)" || rm -f $(adINTFILES)
	test -z "$(adOUTFILES)" || rm -f $(adOUTFILES)

clean : clean_curdir
	$(adBeginSubdir) $@ $(adEndSubdir)

# Also delete `Makefile'
# Use `clean_curdir' to avoid recursive call to all subdirectories
distclean_curdir : clean_curdir

distclean : distclean_curdir
	$(adBeginSubdir) $@ $(adEndSubdir)
