2
0

Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. include ../../mconfig
  2. include ../../build/version.conf
  3. all: generate
  4. generate: dinit.8 dinitctl.8 dinitcheck.8 dinit-monitor.8 dinit-service.5 shutdown.8
  5. install: generate
  6. mkdir -p "$(DESTDIR)$(MANDIR)/man8"
  7. install -m644 dinit.8 dinitctl.8 dinitcheck.8 dinit-monitor.8 "$(DESTDIR)$(MANDIR)/man8"
  8. mkdir -p "$(DESTDIR)$(MANDIR)/man5"
  9. install -m644 dinit-service.5 "$(DESTDIR)$(MANDIR)/man5"
  10. ifeq ($(BUILD_SHUTDOWN),yes)
  11. install -m644 shutdown.8 "$(DESTDIR)$(MANDIR)/man8"
  12. ln -sf "shutdown.8" "$(DESTDIR)$(MANDIR)/man8/halt.8"
  13. ln -sf "shutdown.8" "$(DESTDIR)$(MANDIR)/man8/reboot.8"
  14. ln -sf "shutdown.8" "$(DESTDIR)$(MANDIR)/man8/poweroff.8"
  15. endif
  16. clean:
  17. rm -f dinit.8 dinitctl.8 dinitcheck.8 dinit-monitor.8 dinit-service.5 shutdown.8
  18. html: generate
  19. ./generate-html.sh
  20. dinit.8: dinit.8.m4
  21. m4 -DVERSION=$(VERSION) -DMONTH=$(MONTH) -DYEAR=$(YEAR) dinit.8.m4 > dinit.8
  22. dinitctl.8: dinitctl.8.m4
  23. m4 -DVERSION=$(VERSION) -DMONTH=$(MONTH) -DYEAR=$(YEAR) dinitctl.8.m4 > dinitctl.8
  24. dinitcheck.8: dinitcheck.8.m4
  25. m4 -DVERSION=$(VERSION) -DMONTH=$(MONTH) -DYEAR=$(YEAR) dinitcheck.8.m4 > dinitcheck.8
  26. dinit-monitor.8: dinit-monitor.8.m4
  27. m4 -DVERSION=$(VERSION) -DMONTH=$(MONTH) -DYEAR=$(YEAR) dinit-monitor.8.m4 > dinit-monitor.8
  28. dinit-service.5: dinit-service.5.m4
  29. m4 -DVERSION=$(VERSION) -DMONTH=$(MONTH) -DYEAR=$(YEAR) dinit-service.5.m4 > dinit-service.5
  30. shutdown.8: shutdown.8.m4
  31. m4 -DVERSION=$(VERSION) -DMONTH=$(MONTH) -DYEAR=$(YEAR) shutdown.8.m4 > shutdown.8