summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Jennings <mej@lanl.gov>2020-02-28 15:30:29 -0700
committerMichael Jennings <mej@lanl.gov>2020-02-28 15:30:29 -0700
commitc6a008f51b38014e7620937bd13ca312dfdeeed5 (patch)
tree6c72b15631210c295f23015ba5767ba1de6768ad
parent512b8e8b83407bb0ceed93b2a824252ebac4ff6b (diff)
downloadlibast-c6a008f51b38014e7620937bd13ca312dfdeeed5.tar.gz
*/Makefile.am: Fix include paths and `distclean`
-rw-r--r--Makefile.am1
-rw-r--r--include/Makefile.am4
-rw-r--r--src/Makefile.am3
-rw-r--r--test/Makefile.am3
4 files changed, 7 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am
index f0bed9b..f5d5ab3 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -10,6 +10,7 @@ macrodir = $(datadir)/aclocal
EXTRA_DIST = DESIGN LICENSE README $(MACROS) libast.spec
MAINTAINERCLEANFILES = Makefile.in *~ aclocal.m4 config.guess config.sub configure depcomp \
install-sh ltconfig ltmain.sh missing mkinstalldirs stamp-h* *.log config.h.in
+DISTCLEANFILES = Makefile
test: all
cd test && $(MAKE) test
diff --git a/include/Makefile.am b/include/Makefile.am
index 3fcaa9e..468c187 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -7,7 +7,7 @@ nobase_include_HEADERS = libast.h libast/array.h libast/avl_tree.h \
libast/thread_if.h libast/tok.h libast/url.h libast/ustr.h \
libast/vector_if.h
-nodist_include_HEADERS = libast/sysdefs.h libast/types.h
+nobase_nodist_include_HEADERS = libast/sysdefs.h libast/types.h
noinst_HEADERS = libast_internal.h
libast/types.h: libast/types.h.in
@@ -17,4 +17,4 @@ libast/sysdefs.h: libast/sysdefs.h.in
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
MAINTAINERCLEANFILES = Makefile.in
-DISTCLEANFILES = libast/sysdefs.h libast/types.h
+DISTCLEANFILES = Makefile libast/sysdefs.h libast/types.h
diff --git a/src/Makefile.am b/src/Makefile.am
index c8ecfaf..4db1fb1 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -2,7 +2,7 @@
lib_LTLIBRARIES = libast.la
-INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/include/$(PACKAGE)
+AM_CPPFLAGS = -I../include -I$(top_srcdir)/include -I$(top_srcdir)/include/$(PACKAGE)
AM_CFLAGS = $(PTHREAD_CFLAGS)
AM_LDFLAGS = $(PTHREAD_LIBS)
@@ -13,3 +13,4 @@ snprintf.c tok.c url.c ustr.c
libast_la_LDFLAGS = -version-info 2:2:0
MAINTAINERCLEANFILES = Makefile.in
+DISTCLEANFILES = Makefile
diff --git a/test/Makefile.am b/test/Makefile.am
index 2fcf71d..624083e 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1,6 +1,6 @@
EXTRA_PROGRAMS = libast-test libast-perf
-INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/include/$(PACKAGE)
+AM_CPPFLAGS = -I../include -I$(top_srcdir)/include -I$(top_srcdir)/include/$(PACKAGE)
libast_test_SOURCES = test.c test.h
libast_test_DEPENDENCIES = $(top_builddir)/src/libast.la
@@ -20,3 +20,4 @@ perf: libast-perf
.PHONY: test
MAINTAINERCLEANFILES = Makefile.in
+DISTCLEANFILES = Makefile