-@WANT_INSTALLPERMS_TRUE@installperms-exec:
-@WANT_INSTALLPERMS_TRUE@ @installperms="$(INSTALLPERMS_exec)"; \
-@WANT_INSTALLPERMS_TRUE@ test -n "$$installperms" && echo "Setting installation permissions on executables"; \
-@WANT_INSTALLPERMS_TRUE@ dest=; chown=; chmod=; \
-@WANT_INSTALLPERMS_TRUE@ for cmd in $$installperms; do \
-@WANT_INSTALLPERMS_TRUE@ case "$$cmd" in \
-@WANT_INSTALLPERMS_TRUE@ chown=amanda) \
-@WANT_INSTALLPERMS_TRUE@ echo " ($$cmd)"; chown="$(BINARY_OWNER):$(SETUID_GROUP)";; \
-@WANT_INSTALLPERMS_TRUE@ dest=*|chown=*|chmod=*) \
-@WANT_INSTALLPERMS_TRUE@ echo " ($$cmd)"; eval $$cmd;; \
-@WANT_INSTALLPERMS_TRUE@ *) pa="$(DESTDIR)$$dest"/`echo "$$cmd"|sed '$(strip_leading_dirs)'|sed '$(transform)'`; \
-@WANT_INSTALLPERMS_TRUE@ if test -n "$$chown"; then \
-@WANT_INSTALLPERMS_TRUE@ echo chown "$$chown" "$$pa"; \
-@WANT_INSTALLPERMS_TRUE@ chown "$$chown" "$$pa" || exit 1; \
-@WANT_INSTALLPERMS_TRUE@ fi; \
-@WANT_INSTALLPERMS_TRUE@ if test -n "$$chmod"; then \
-@WANT_INSTALLPERMS_TRUE@ echo chmod "$$chmod" "$$pa"; \
-@WANT_INSTALLPERMS_TRUE@ chmod "$$chmod" "$$pa" || exit 1; \
-@WANT_INSTALLPERMS_TRUE@ fi; \
-@WANT_INSTALLPERMS_TRUE@ esac; \
-@WANT_INSTALLPERMS_TRUE@ done
-
-@WANT_INSTALLPERMS_TRUE@installperms-data:
-@WANT_INSTALLPERMS_TRUE@ @installperms="$(INSTALLPERMS_data)"; \
-@WANT_INSTALLPERMS_TRUE@ test -n "$$installperms" && echo "Setting installation permissions on data"; \
-@WANT_INSTALLPERMS_TRUE@ dest=; chown=; chmod=; \
-@WANT_INSTALLPERMS_TRUE@ for cmd in $$installperms; do \
-@WANT_INSTALLPERMS_TRUE@ case "$$cmd" in \
-@WANT_INSTALLPERMS_TRUE@ chown=amanda) \
-@WANT_INSTALLPERMS_TRUE@ echo " ($$cmd)"; chown="$(BINARY_OWNER):$(SETUID_GROUP)";; \
-@WANT_INSTALLPERMS_TRUE@ dest=*|chown=*|chmod=*) \
-@WANT_INSTALLPERMS_TRUE@ echo " ($$cmd)"; eval $$cmd;; \
-@WANT_INSTALLPERMS_TRUE@ *) pa="$(DESTDIR)$$dest"/`echo "$$cmd"|sed '$(strip_leading_dirs)'|sed '$(transform)'`; \
-@WANT_INSTALLPERMS_TRUE@ if test -n "$$chown"; then \
-@WANT_INSTALLPERMS_TRUE@ echo chown "$$chown" "$$pa"; \
-@WANT_INSTALLPERMS_TRUE@ chown "$$chown" "$$pa" || exit 1; \
-@WANT_INSTALLPERMS_TRUE@ fi; \
-@WANT_INSTALLPERMS_TRUE@ if test -n "$$chmod"; then \
-@WANT_INSTALLPERMS_TRUE@ echo chmod "$$chmod" "$$pa"; \
-@WANT_INSTALLPERMS_TRUE@ chmod "$$chmod" "$$pa" || exit 1; \
-@WANT_INSTALLPERMS_TRUE@ fi; \
-@WANT_INSTALLPERMS_TRUE@ esac; \
-@WANT_INSTALLPERMS_TRUE@ done
-
-@WANT_INSTALLPERMS_TRUE@install-exec-hook: installperms-exec
-@WANT_INSTALLPERMS_TRUE@install-data-hook: installperms-data
+installperms-exec:
+ @installperms="$(INSTALLPERMS_exec)"; \
+ test -n "$$installperms" && echo "Setting installation permissions on executables"; \
+ dest=; chown=; chmod=; \
+ for cmd in $$installperms; do \
+ case "$$cmd" in \
+ chown=amanda) \
+ echo " ($$cmd)"; chown="$(BINARY_OWNER):$(SETUID_GROUP)";; \
+ dest=*|chown=*|chmod=*) \
+ echo " ($$cmd)"; eval $$cmd;; \
+ *) $(do_file) ;; \
+ esac; \
+ done
+
+installperms-data:
+ @installperms="$(INSTALLPERMS_data)"; \
+ dest=; chown=; chmod=; \
+ for cmd in $$installperms; do \
+ case "$$cmd" in \
+ chown=amanda) \
+ echo " ($$cmd)"; chown="$(BINARY_OWNER):$(SETUID_GROUP)";; \
+ dest=*|chown=*|chmod=*) \
+ echo " ($$cmd)"; eval $$cmd;; \
+ *) $(do_file) ;; \
+ esac; \
+ done
+
+install-exec-hook: installperms-exec
+install-data-hook: installperms-data
+
+# define a rule to initialize the installperms manifest file
+@WANT_INSTALLPERMS_TRUE@installperms-init:
+@WANT_INSTALLPERMS_FALSE@installperms-init:
+@WANT_INSTALLPERMS_FALSE@ rm -f "$(installperms_sh)"