- mkdir -p $(PREFIX)/bin/
- mkdir -p $(PREFIX)/include/mdoc/
- mkdir -p $(PREFIX)/lib/
- mkdir -p $(PREFIX)/man/man1/
- install -m 0755 mdocterm $(PREFIX)/bin/
- install -m 0755 mdoctree $(PREFIX)/bin/
- install -m 0755 mdoclint $(PREFIX)/bin/
- install -m 0444 mdocterm.1 $(PREFIX)/man/man1/
- install -m 0444 mdoctree.1 $(PREFIX)/man/man1/
- install -m 0444 mdoclint.1 $(PREFIX)/man/man1/
- install -m 0444 mdoc.3 $(PREFIX)/man/man3/
- install -m 0644 libmdoc.a $(PREFIX)/lib/
- install -m 0444 mdoc.h $(PREFIX)/include/
+ mkdir -p $(DESTDIR)$(BINDIR)
+ mkdir -p $(DESTDIR)$(INCLUDEDIR)
+ mkdir -p $(DESTDIR)$(LIBDIR)/lib
+ mkdir -p $(DESTDIR)$(MANDIR)/man1
+ mkdir -p $(DESTDIR)$(MANDIR)/man3
+ $(INSTALL_PROGRAM) mdocterm $(DESTDIR)$(BINDIR)
+ $(INSTALL_PROGRAM) mdoctree $(DESTDIR)$(BINDIR)
+ $(INSTALL_PROGRAM) mdoclint $(DESTDIR)$(BINDIR)
+ $(INSTALL_MAN) mdocterm.1 $(DESTDIR)$(MANDIR)/man1
+ $(INSTALL_MAN) mdoctree.1 $(DESTDIR)$(MANDIR)/man1
+ $(INSTALL_MAN) mdoclint.1 $(DESTDIR)$(MANDIR)/man1
+ $(INSTALL_MAN) mdoc.3 $(DESTDIR)$(MANDIR)/man3
+ $(INSTALL_LIB) libmdoc.a $(DESTDIR)$(LIBDIR)
+ $(INSTALL_DATA) mdoc.h $(DESTDIR)$(INCLUDEDIR)