chiark / gitweb /
Add stamp-h1 to .gitignore
[innduct.git] / Makefile.am
index 124e9c1f692b4dd0f6abf4f485dbb68491450935..21003dbfbc3b13b09eea286d06ac922a8dfcd071 100644 (file)
@@ -24,7 +24,7 @@
 
 AUTOMAKE_OPTIONS=foreign
 
-INCLUDES = -I/usr/include/inn
+AM_CPPFLAGS = -I/usr/include/inn $(CMDLINE_CPPFLAGS)
 
 WERROR = -Werror
 CMDLINE_CFLAGS =
@@ -37,7 +37,7 @@ WARNINGS= \
        -Wmissing-format-attribute -Wredundant-decls -Wnested-externs \
        -Wno-pointer-sign
 
-CFLAGS = @CFLAGS@ $(WARNINGS) $(WERROR) $(CMDLINE_CFLAGS)
+AM_CFLAGS = $(WARNINGS) $(WERROR) $(CMDLINE_CFLAGS)
 
 bin_PROGRAMS = innduct
 bin_SCRIPTS = innduct-stats-report innduct-forall
@@ -47,12 +47,7 @@ innduct_SOURCES = duct.c conn.c filemon.c infile.c recv.c xmit.c \
 
 innduct_LDADD = -L/usr/lib/news -lstorage -linn -lm -loop
 
-autoconf:
-       aclocal-1.4
-       autoheader2.50
-       autoconf2.50
-       automake-1.4
-       perl -i.bak -pe '$$_="" if m/^(?:Makefile|config\.h):/..m/^$$/' \
-               Makefile.in
+autogen autoconf:
+       ./autogen.sh
 
 MAINTAINERCLEANFILES = configure config.h.in Makefile.in