INSTALL_SUDO = install --mode=440 --owner=root --preserve-timestamps '$<' $@ .PHONY: install_sudoers test_sudoers_d install_sudoers: /etc/sudoers.d/sane_timeout /etc/sudoers.d/%: %.sudoers | test_sudoers_d $(INSTALL_SUDO) # tests for the following in /etc/sudoers: # ## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment) # #includedir /etc/sudoers.d test_sudoers_d: | /etc/sudoers.d grep -q '^#includedir /etc/sudoers.d' /etc/sudoers