From: kristaps@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: Add lint target to Makefile.
Date: Tue, 29 Mar 2011 05:37:24 -0400 (EDT) [thread overview]
Message-ID: <201103290937.p2T9bOpu012748@krisdoz.my.domain> (raw)
Log Message:
-----------
Add lint target to Makefile.
Modified Files:
--------------
mdocml:
Makefile
Revision Data
-------------
Index: Makefile
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/Makefile,v
retrieving revision 1.324
retrieving revision 1.325
diff -LMakefile -LMakefile -u -p -r1.324 -r1.325
--- Makefile
+++ Makefile
@@ -106,6 +106,11 @@ LIBMAN_OBJS = man.o \
man_hash.o \
man_macro.o \
man_validate.o
+LIBMAN_LNS = man.ln \
+ man_hash.ln \
+ man_macro.ln \
+ man_validate.ln
+
LIBMDOC_OBJS = arch.o \
att.o \
lib.o \
@@ -117,54 +122,96 @@ LIBMDOC_OBJS = arch.o \
msec.o \
st.o \
vol.o
+LIBMDOC_LNS = arch.ln \
+ att.ln \
+ lib.ln \
+ mdoc.ln \
+ mdoc_argv.ln \
+ mdoc_hash.ln \
+ mdoc_macro.ln \
+ mdoc_validate.ln \
+ msec.ln \
+ st.ln \
+ vol.ln
+
LIBROFF_OBJS = eqn.o \
roff.o \
tbl.o \
tbl_data.o \
tbl_layout.o \
tbl_opts.o
+LIBROFF_LNS = eqn.ln \
+ roff.ln \
+ tbl.ln \
+ tbl_data.ln \
+ tbl_layout.ln \
+ tbl_opts.ln
+
LIBMANDOC_OBJS = $(LIBMAN_OBJS) \
$(LIBMDOC_OBJS) \
$(LIBROFF_OBJS) \
mandoc.o \
read.o
-
-arch.o: arch.in
-att.o: att.in
-lib.o: lib.in
-msec.o: msec.in
-st.o: st.in
-vol.o: vol.in
-
-$(LIBMAN_OBJS): libman.h
-$(LIBMDOC_OBJS): libmdoc.h
-$(LIBROFF_OBJS): libroff.h
-$(LIBMANDOC_OBJS): mandoc.h mdoc.h man.h libmandoc.h config.h
+LIBMANDOC_LNS = $(LIBMAN_LNS) \
+ $(LIBMDOC_LNS) \
+ $(LIBROFF_LNS) \
+ mandoc.ln \
+ read.ln
+
+arch.o arch.ln: arch.in
+att.o att.ln: att.in
+lib.o lib.ln: lib.in
+msec.o msec.ln: msec.in
+st.o st.ln: st.in
+vol.o vol.ln: vol.in
+
+$(LIBMAN_OBJS) $(LIBMAN_LNS): libman.h
+$(LIBMDOC_OBJS) $(LIBMDOC_LNS): libmdoc.h
+$(LIBROFF_OBJS) $(LIBROFF_LNS): libroff.h
+$(LIBMANDOC_OBJS) $(LIBMANDOC_LNS): mandoc.h mdoc.h man.h libmandoc.h config.h
MANDOC_HTML_OBJS = html.o \
man_html.o \
mdoc_html.o \
tbl_html.o
+MANDOC_HTML_LNS = html.ln \
+ man_html.ln \
+ mdoc_html.ln \
+ tbl_html.ln
+
MANDOC_TERM_OBJS = man_term.o \
mdoc_term.o \
term.o \
term_ascii.o \
term_ps.o \
tbl_term.o
+MANDOC_TERM_LNS = man_term.ln \
+ mdoc_term.ln \
+ term.ln \
+ term_ascii.ln \
+ term_ps.ln \
+ tbl_term.ln
+
MANDOC_OBJS = $(MANDOC_HTML_OBJS) \
$(MANDOC_TERM_OBJS) \
chars.o \
main.o \
out.o \
tree.o
+MANDOC_LNS = $(MANDOC_HTML_LNS) \
+ $(MANDOC_TERM_LNS) \
+ chars.ln \
+ main.ln \
+ out.ln \
+ tree.ln
+
+chars.o chars.ln: chars.in
+
+$(MANDOC_HTML_OBJS) $(MANDOC_HTML_LNS): html.h
+$(MANDOC_TERM_OBJS) $(MANDOC_TERM_LNS): term.h
+$(MANDOC_OBJS) $(MANDOC_LNS): main.h mandoc.h mdoc.h man.h config.h out.h
-chars.o: chars.in
-
-$(MANDOC_HTML_OBJS): html.h
-$(MANDOC_TERM_OBJS): term.h
-$(MANDOC_OBJS): main.h mandoc.h mdoc.h man.h config.h out.h
-
-compat.o: config.h
+compat.o compat.ln: config.h
INDEX_MANS = mandoc.1.html \
mandoc.1.xhtml \
@@ -218,10 +265,14 @@ INDEX_OBJS = $(INDEX_MANS) \
www: index.html
+lint: llib-llibmandoc.ln llib-lmandoc.ln
+
clean:
rm -f libmandoc.a $(LIBMANDOC_OBJS)
+ rm -f llib-llibmandoc.ln $(LIBMANDOC_LNS)
rm -f mandoc $(MANDOC_OBJS)
- rm -f config.h compat.o config.log
+ rm -f llib-lmandoc.ln $(MANDOC_LNS)
+ rm -f config.h config.log compat.o compat.ln
rm -f mdocml.tar.gz
rm -f index.html $(INDEX_OBJS)
@@ -251,8 +302,14 @@ installwww: www
libmandoc.a: compat.o $(LIBMANDOC_OBJS)
$(AR) rs $@ compat.o $(LIBMANDOC_OBJS)
+llib-llibmandoc.ln: compat.ln $(LIBMANDOC_LNS)
+ $(LINT) $(LINTFLAGS) -Clibmandoc compat.ln $(LIBMANDOC_LNS)
+
mandoc: $(MANDOC_OBJS) libmandoc.a
$(CC) -o $@ $(MANDOC_OBJS) libmandoc.a
+
+llib-lmandoc.ln: $(MANDOC_LNS)
+ $(LINT) $(LINTFLAGS) -Cmandoc $(MANDOC_LNS)
mdocml.md5: mdocml.tar.gz
md5 mdocml.tar.gz >$@
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
reply other threads:[~2011-03-29 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=201103290937.p2T9bOpu012748@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).