debian: Add graphviz dependency
[gfxprim/pasky.git] / install.mk
blob991247a36d34224e91746694f0387196b4c4f67d
1 ifdef DESTDIR
2 BIN_DIR=$(DESTDIR)$(prefix)/$(bindir)
3 else
4 BIN_DIR=$(prefix)/$(bindir)
5 endif
7 ifdef DESTDIR
8 MAN_DIR=$(DESTDIR)$(prefix)/$(mandir)/man1
9 else
10 MAN_DIR=$(prefix)/$(mandir)/man1
11 endif
13 install:
14 ifdef INSTALL_BIN
15 ifdef VERBOSE
16 install -d "$(BIN_DIR)"
17 for i in $(INSTALL_BIN); do install "$$i" "$(BIN_DIR)"; done
18 else
19 @install -d "$(BIN_DIR)"
20 @echo "MKDIR $(BIN_DIR)"
21 @for i in $(INSTALL_BIN); do echo "CP $$i $(BIN_DIR)"; install "$$i" "$(BIN_DIR)"; done
22 endif
23 endif
25 ifdef INSTALL_MAN
26 ifdef VERBOSE
27 install -d "$(MAN_DIR)"
28 for i in $(INSTALL_MAN); do install "$$i" "$(MAN_DIR)"; done
29 else
30 @install -d "$(MAN_DIR)"
31 @echo "MKDIR $(MAN_DIR)"
32 @for i in $(INSTALL_MAN); do echo "CP $$i $(MAN_DIR)"; install "$$i" "$(MAN_DIR)"; done
33 endif
34 endif