diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-12-07 11:59:32 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-12-07 11:59:32 +0000 |
commit | d17728ddc426a13a4ffda7bbfd0d0ac6b3881502 (patch) | |
tree | 777b1d4fa99c7592d60f7e589db99a691fad728d /Makefile | |
parent | a3c7e0fc904b613dc28b26f943c8b5f4ec2243a7 (diff) | |
download | mandoc-d17728ddc426a13a4ffda7bbfd0d0ac6b3881502.tar.gz |
Make installing CGI a bit easier.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -35,6 +35,9 @@ STATIC = -static CFLAGS += -g -DHAVE_CONFIG_H -DVERSION="\"$(VERSION)\"" CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings PREFIX = /usr/local +WWWPREFIX = /var/www +HTDOCDIR = $(WWWPREFIX)/htdocs +CGIBINDIR = $(WWWPREFIX)/cgi-bin BINDIR = $(PREFIX)/bin INCLUDEDIR = $(PREFIX)/include/mandoc LIBDIR = $(PREFIX)/lib/mandoc @@ -445,6 +448,12 @@ install: all $(INSTALL_MAN) man.7 mdoc.7 roff.7 eqn.7 tbl.7 mandoc_char.7 $(DESTDIR)$(MANDIR)/man7 $(INSTALL_DATA) example.style.css $(DESTDIR)$(EXAMPLEDIR) +installcgi: all + mkdir -p $(DESTDIR)$(CGIBINDIR) + mkdir -p $(DESTDIR)$(HTDOCDIR) + $(INSTALL_PROGRAM) man.cgi $(DESTDIR)$(CGIBINDIR) + $(INSTALL_DATA) example.style.css $(DESTDIR)$(HTDOCDIR)/man.css + installwww: www mkdir -p $(PREFIX)/snapshots mkdir -p $(PREFIX)/binaries |