
.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 files generated by `configure'
# Use `clean_curdir' to avoid recursive call to all subdirectories
distclean_curdir : clean_curdir
	rm -f config.h
	rm -f config.cache config.log config.status
	rm -f Makefile

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