subst.inc 764 B

12345678910111213141516171819202122
  1. .in:
  2. if sed \
  3. -e 's#[@]localstatedir_POST@#$(localstatedir)#g' \
  4. -e 's#[@]sbindir_POST@#$(sbindir)#g' \
  5. -e 's#[@]pluginsdir_POST@#$(pluginsdir)#g' \
  6. -e 's#[@]configdir_POST@#$(configdir)#g' \
  7. -e 's#[@]libconfigdir_POST@#$(libconfigdir)#g' \
  8. -e 's#[@]pkglibexecdir_POST@#$(pkglibexecdir)#g' \
  9. -e 's#[@]cachedir_POST@#$(cachedir)#g' \
  10. -e 's#[@]registrydir_POST@#$(registrydir)#g' \
  11. -e 's#[@]varlibdir_POST@#$(varlibdir)#g' \
  12. -e 's#[@]webdir_POST@#$(webdir)#g' \
  13. -e 's#[@]libsysdir_POST@#$(libsysdir)#g' \
  14. -e 's#[@]enable_aclk_POST@#$(enable_aclk)#g' \
  15. -e 's#[@]enable_cloud_POST@#$(enable_cloud)#g' \
  16. -e 's#[@]netdata_user_POST@#$(netdata_user)#g' \
  17. $< > $@.tmp; then \
  18. mv "$@.tmp" "$@"; \
  19. else \
  20. rm -f "$@.tmp"; \
  21. false; \
  22. fi