aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile56
1 files changed, 6 insertions, 50 deletions
diff --git a/Makefile b/Makefile
index 66dc6cfc..4fd749a1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.395.2.28 2014/08/12 21:37:42 schwarze Exp $
+# $Id: Makefile,v 1.395.2.29 2014/08/14 20:43:22 schwarze Exp $
#
# Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
# Copyright (c) 2011, 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -73,9 +73,6 @@ BUILD_TARGETS += db-build
#
#CFLAGS += -DUSE_MANPATH
-WWWPREFIX = /var/www
-HTDOCDIR = $(WWWPREFIX)/htdocs
-
# === END OF USER SETTINGS =============================================
INSTALL_TARGETS = $(BUILD_TARGETS:-build=-install)
@@ -150,7 +147,8 @@ SRCS = apropos.c \
vol.c \
$(TESTSRCS)
-DISTFILES = LICENSE \
+DISTFILES = INSTALL \
+ LICENSE \
Makefile \
Makefile.depend \
NEWS \
@@ -275,30 +273,6 @@ APROPOS_OBJS = apropos.o apropos_db.o manpath.o
DEMANDOC_OBJS = demandoc.o
-WWW_MANS = apropos.1.html \
- demandoc.1.html \
- mandoc.1.html \
- preconv.1.html \
- whatis.1.html \
- mandoc.3.html \
- mandoc_escape.3.html \
- mandoc_html.3.html \
- mandoc_malloc.3.html \
- mchars_alloc.3.html \
- tbl.3.html \
- eqn.7.html \
- man.7.html \
- mandoc_char.7.html \
- mdoc.7.html \
- roff.7.html \
- tbl.7.html \
- mandocdb.8.html \
- man.h.html \
- mandoc.h.html \
- mandoc_aux.h.html \
- manpath.h.html \
- mdoc.h.html
-
WWW_OBJS = mdocml.tar.gz \
mdocml.sha256
@@ -312,7 +286,7 @@ db-build: $(DBBIN)
install: base-install $(INSTALL_TARGETS)
-www: $(WWW_OBJS) $(WWW_MANS)
+www: $(WWW_OBJS)
include Makefile.depend
@@ -326,7 +300,7 @@ clean:
rm -f demandoc $(DEMANDOC_OBJS)
rm -f mandoc $(MANDOC_OBJS)
rm -f config.h config.log $(COMPAT_OBJS)
- rm -f $(WWW_MANS) $(WWW_OBJS)
+ rm -f $(WWW_OBJS)
rm -rf *.dSYM
base-install: base-build
@@ -357,15 +331,6 @@ db-install: db-build
$(INSTALL_MAN) apropos.1 whatis.1 $(DESTDIR)$(MANDIR)/man1
$(INSTALL_MAN) mandocdb.8 $(DESTDIR)$(MANDIR)/man8
-www-install: www
- mkdir -p $(DESTDIR)$(HTDOCDIR)/snapshots
- $(INSTALL_DATA) $(WWW_MANS) style.css $(DESTDIR)$(HTDOCDIR)
- $(INSTALL_DATA) $(WWW_OBJS) $(DESTDIR)$(HTDOCDIR)/snapshots
- $(INSTALL_DATA) mdocml.tar.gz \
- $(DESTDIR)$(HTDOCDIR)/snapshots/mdocml-$(VERSION).tar.gz
- $(INSTALL_DATA) mdocml.sha256 \
- $(DESTDIR)$(HTDOCDIR)/snapshots/mdocml-$(VERSION).sha256
-
depend: config.h
mkdep -f Makefile.depend $(CFLAGS) $(SRCS)
perl -e 'undef $$/; $$_ = <>; s|/usr/include/\S+||g; \
@@ -404,14 +369,5 @@ config.h: configure config.h.pre config.h.post $(TESTSRCS)
rm -f config.log
CC="$(CC)" CFLAGS="$(CFLAGS)" VERSION="$(VERSION)" ./configure
-.PHONY: base-install db-install install www-install
+.PHONY: base-install db-install install
.PHONY: clean depend
-.SUFFIXES: .1 .3 .5 .7 .8 .h
-.SUFFIXES: .1.html .3.html .5.html .7.html .8.html .h.html
-
-.h.h.html:
- highlight -I $< > $@
-
-.1.1.html .3.3.html .5.5.html .7.7.html .8.8.html: mandoc
- ./mandoc -Thtml -Wall,stop \
- -Ostyle=style.css,man=%N.%S.html,includes=%I.html $< > $@