source@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: kristaps@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: docbook2mdoc: Add hook to install.
Date: Wed, 30 Apr 2014 05:37:33 -0400 (EDT)	[thread overview]
Message-ID: <201404300937.s3U9bXpb015083@krisdoz.my.domain> (raw)

Log Message:
-----------
Add hook to install.

Modified Files:
--------------
    docbook2mdoc:
        Makefile

Revision Data
-------------
Index: Makefile
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/docbook2mdoc/Makefile,v
retrieving revision 1.11
retrieving revision 1.12
diff -LMakefile -LMakefile -u -p -r1.11 -r1.12
--- Makefile
+++ Makefile
@@ -1,11 +1,20 @@
 VERSION = 0.0.7
 CFLAGS += -g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings 
 WWWPREFIX = /usr/vhosts/mdocml.bsd.lv/www/htdocs/docbook2mdoc
+PREFIX = /usr/local
+
+all: docbook2mdoc
 
 docbook2mdoc: docbook2mdoc.o rules.o
 	$(CC) -o $@ docbook2mdoc.o rules.o -lexpat
 
 www: index.html docbook2mdoc.1.html docbook2mdoc-$(VERSION).tgz README.txt
+
+install: all
+	mkdir -p $(PREFIX)/bin
+	mkdir -p $(PREFIX)/man/man1
+	install -m 0755 docbook2mdoc $(PREFIX)/bin
+	install -m 0444 docbook2mdoc.1 $(PREFIX)/man/man1
 
 installwww: www
 	mkdir -p $(WWWPREFIX)/snapshots
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

                 reply	other threads:[~2014-04-30  9:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201404300937.s3U9bXpb015083@krisdoz.my.domain \
    --to=kristaps@mdocml.bsd.lv \
    --cc=source@mdocml.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).