summaryrefslogtreecommitdiff
path: root/util/makedepend/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'util/makedepend/Makefile.am')
-rw-r--r--util/makedepend/Makefile.am24
1 files changed, 21 insertions, 3 deletions
diff --git a/util/makedepend/Makefile.am b/util/makedepend/Makefile.am
index f0a384b28..91893c44b 100644
--- a/util/makedepend/Makefile.am
+++ b/util/makedepend/Makefile.am
@@ -1,4 +1,3 @@
-# $XdotOrg: $
bin_PROGRAMS = makedepend
@@ -14,7 +13,8 @@ makedepend_SOURCES = include.c \
def.h \
imakemdep.h
-makedepend_CPPFLAGS = -DOBJSUFFIX=\".${OBJEXT}\" -DINCLUDEDIR=\"/usr/include\"
+AM_CPPFLAGS = -DOBJSUFFIX=\".${OBJEXT}\" -DINCLUDEDIR=\"/usr/include\"
+AM_CFLAGS = $(CWARNFLAGS)
EXTRA_DIST = autogen.sh makedepend.man
@@ -49,4 +49,22 @@ MAN_SUBSTS = \
SUFFIXES = .$(APP_MAN_SUFFIX) .man
.man.$(APP_MAN_SUFFIX):
- sed $(MAN_SUBSTS) < $< > $@
+ $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@
+
+EXTRA_DIST += ChangeLog
+MAINTAINERCLEANFILES = ChangeLog
+
+.PHONY: ChangeLog
+
+ChangeLog:
+ $(CHANGELOG_CMD)
+
+dist-hook: ChangeLog
+
+if LINT
+ALL_LINT_FLAGS=$(LINT_FLAGS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
+ $(AM_CPPFLAGS) $(CPPFLAGS)
+
+lint:
+ $(LINT) $(ALL_LINT_FLAGS) $(makedepend_SOURCES)
+endif LINT