mirror of
https://git.freebsd.org/ports.git
synced 2025-06-13 16:50:29 -04:00
mdoc. Unlike most DocBook utilities, it's a standalone ISC-licensed ISO C utility that should compile on any modern UNIX system. The only requirement is libexpat (for parsing XML), which is installed by default on most systems. WWW: http://mdocml.bsd.lv/docbook2mdoc/
25 lines
803 B
Text
25 lines
803 B
Text
--- Makefile.orig 2014-04-30 13:21:35 UTC
|
|
+++ Makefile
|
|
@@ -1,19 +1,19 @@
|
|
VERSION = 0.0.9
|
|
CFLAGS += -g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings
|
|
WWWPREFIX = /usr/vhosts/mdocml.bsd.lv/www/htdocs/docbook2mdoc
|
|
-PREFIX = /usr/local
|
|
+PREFIX ?= /usr/local
|
|
|
|
all: docbook2mdoc
|
|
|
|
docbook2mdoc: docbook2mdoc.o rules.o
|
|
- $(CC) -o $@ docbook2mdoc.o rules.o -lexpat
|
|
+ $(CC) -o $@ docbook2mdoc.o rules.o ${LDFLAGS} -lexpat
|
|
|
|
www: index.html docbook2mdoc.1.html docbook2mdoc-$(VERSION).tgz README.txt
|
|
|
|
install: all
|
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
|
mkdir -p $(DESTDIR)$(PREFIX)/man/man1
|
|
- install -m 0755 docbook2mdoc $(DESTDIR)$(PREFIX)/bin
|
|
+ install -s -m 0755 docbook2mdoc $(DESTDIR)$(PREFIX)/bin
|
|
install -m 0444 docbook2mdoc.1 $(DESTDIR)$(PREFIX)/man/man1
|
|
|
|
installwww: www
|