# -*- mode: makefile -*- INSTALL=/usr/bin/install install: # man for f in dmd.1 dumpobj.1 obj2asm.1; do \ $(INSTALL) -m 644 ../docs/man/man1/$$f \ $(DESTDIR)$(PREFIX)/share/man/man1; \ done $(INSTALL) -m 644 ../docs/man/man5/dmd.conf.5 \ $(DESTDIR)$(PREFIX)/share/man/man5 # bin for f in dmd; do \ $(INSTALL) -m 755 $$f $(DESTDIR)$(PREFIX)/bin; \ done # samples $(INSTALL) -d -m 755 $(DESTDIR)$(PREFIX)/share/dmd/samples $(INSTALL) -m 644 ../samples/*.d $(DESTDIR)$(PREFIX)/share/dmd/samples # conf $(INSTALL) -d -m 755 $(DESTDIR)$(PREFIX)/etc/dmd echo "[Environment]" >> $(DESTDIR)$(PREFIX)/etc/dmd/dmd.conf echo "DFLAGS=-I$(PREFIX)/include/druntime/import -I$(PREFIX)/include/phobos -L-L$(PREFIX)/lib" >> $(DESTDIR)$(PREFIX)/etc/dmd/dmd.conf