]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Adding an 'install-doc' target to the Makefile, which is included by the 'install...
authorWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 6 Dec 2012 17:57:56 +0000 (18:57 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 6 Dec 2012 17:57:56 +0000 (18:57 +0100)
Makefile

index 34851937017d59a9df17051f202daa6a364fbf2d..482f13259bbe680707736a88b146e96553df5bdb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
 DESTDIR :=
 PREFIX := /usr/local
 BINDIR := $(PREFIX)/bin
+DATADIR := $(PREFIX)/share
+MANDIR := $(DATADIR)/man
 
 CC     ?= clang
 CFLAGS += -Wall -Wextra -I. -pedantic-errors
@@ -63,10 +65,13 @@ parser.o: ast.h lexer.h
 ast.o: ast.h ir.h
 ir.o: ir.h
 
-install: install-gmqcc install-qcvm
+install: install-gmqcc install-qcvm install-doc
 install-gmqcc: gmqcc
-       install -d -m755          $(DESTDIR)$(BINDIR)
-       install    -m755  gmqcc   $(DESTDIR)$(BINDIR)/gmqcc
+       install -d -m755               $(DESTDIR)$(BINDIR)
+       install    -m755  gmqcc        $(DESTDIR)$(BINDIR)/gmqcc
 install-qcvm: qcvm
-       install -d -m755          $(DESTDIR)$(BINDIR)
-       install    -m755  qcvm    $(DESTDIR)$(BINDIR)/qcvm
+       install -d -m755               $(DESTDIR)$(BINDIR)
+       install    -m755  qcvm         $(DESTDIR)$(BINDIR)/qcvm
+install-doc:
+       install -d -m755               $(DESTDIR)$(MANDIR)/man1
+       install    -m755  doc/gmqcc.1  $(DESTDIR)$(MANDIR)/man1/