From 5f2f59c8ddd07e465449f1f579b28f9617e8fb8c Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 19 Aug 2014 10:26:31 -0400 Subject: Makefile.am: Remove pkgdataprofiledir on uninstall --- diff --git a/Makefile.am b/Makefile.am index 6f15069..cf26f83 100644 --- a/Makefile.am +++ b/Makefile.am @@ -37,6 +37,10 @@ CLEANFILES = \ .builddirstamp pkgdatacmddir = $(pkgdatadir)/cmd pkgdataprofiledir = $(pkgdatadir)/profiles +uninstall_dirs = \ + '$(DESTDIR)$(pkgdataprofiledir)' \ + '$(DESTDIR)$(pkgdatacmddir)' \ + '$(DESTDIR)$(pkgdatadir)' EXTRA_DIST = \ autogen.sh \ $(bin_sources) \ @@ -89,7 +93,7 @@ uninstall-local: done uninstall-hook: - for dir in '$(DESTDIR)$(pkgdatacmddir)' '$(DESTDIR)$(pkgdatadir)'; do \ + for dir in $(uninstall_dirs); do \ if [ -d "$${dir}" ]; then \ rmdir "$${dir}"; \ fi; \ -- cgit v0.9.1