-d test is useless as symlinks are dereferenced
diff --git a/Makefile.am b/Makefile.am
index 3ffc15f..17d5837 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -65,7 +65,6 @@
 
 if ENABLE_OLDNAME_COMPAT
 install-data-hook:
-	test \! -d "$(includedir)/json" || rmdir "$(includedir)/json"
 	test \! -e "$(includedir)/json" || rm "$(includedir)/json"
 	$(LN_S) json-c "$(includedir)/json"