Portable build framework for OpenNTPD
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.4 KiB

  1. #
  2. # Copyright (c) 2014-2015 Brent Cook
  3. # Parts based on Makefile.in from Portable OpenNTPD:
  4. # Copyright (c) 2004-2008 Darren Tucker.
  5. #
  6. # Permission to use, copy, modify, and distribute this software for any
  7. # purpose with or without fee is hereby granted, provided that the above
  8. # copyright notice and this permission notice appear in all copies.
  9. #
  10. # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  11. # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  12. # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  13. # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  14. # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  15. # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  16. # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  17. SUBDIRS = include compat src
  18. ACLOCAL_AMFLAGS = -I m4
  19. EXTRA_DIST = README.md INSTALL VERSION ntpd.conf
  20. install-exec-hook:
  21. @if [ ! -f "$(DESTDIR)$(sysconfdir)/ntpd.conf" ]; then \
  22. $(INSTALL) -m 644 "$(srcdir)/ntpd.conf" "$(DESTDIR)$(sysconfdir)/ntpd.conf"; \
  23. else \
  24. echo; \
  25. echo " $(DESTDIR)$(sysconfdir)/ntpd.conf already exists, install will not overwrite"; \
  26. fi
  27. uninstall-local:
  28. @if cmp -s "$(DESTDIR)$(sysconfdir)/ntpd.conf" "$(srcdir)/ntpd.conf"; then \
  29. rm -f "$(DESTDIR)$(sysconfdir)/ntpd.conf"; \
  30. fi
  31. @rm -f "$(DESTDIR)$(sbindir)/ntpctl"