Adds DESTDIR build variable

Setting DESTDIR on `make install` allows for installing artefacts
in staging location for automated build, packaging etc.
This commit is contained in:
Adam Kolakowski 2020-05-28 23:13:19 +02:00
parent 77fad16833
commit 41e01d4f34
12 changed files with 62 additions and 57 deletions

View file

@ -14,7 +14,7 @@ starnetserverd: $(OBJECTS) ../Common/Common.a ../ircDDB/IRCDDB.a
.PHONY: install
install:
install -g bin -o root -m 0775 starnetserverd $(BINDIR)
install -g root -o root -m 0755 starnetserverd $(DESTDIR)$(BINDIR)
.PHONY: clean
clean: