aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-12-07 11:59:32 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-12-07 11:59:32 +0000
commitf01df18a657b304efaa6206a2cdaae25c5a146e8 (patch)
tree514c789b7cc945a1ab417e7faa3bc45d3cce4c19 /Makefile
parenta723f03473df54cccbce739fdda9b7d35da84ceb (diff)
downloadmandoc-f01df18a657b304efaa6206a2cdaae25c5a146e8.tar.gz
mandoc-f01df18a657b304efaa6206a2cdaae25c5a146e8.tar.zst
mandoc-f01df18a657b304efaa6206a2cdaae25c5a146e8.zip
Make installing CGI a bit easier.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 338a4bbe..7b3de446 100644
--- a/Makefile
+++ b/Makefile
@@ -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