mej pushed a commit to branch master.

http://git.enlightenment.org/misc/libast.git/commit/?id=c6a008f51b38014e7620937bd13ca312dfdeeed5

commit c6a008f51b38014e7620937bd13ca312dfdeeed5
Author: Michael Jennings <[email protected]>
Date:   Fri Feb 28 15:30:29 2020 -0700

    */Makefile.am:  Fix include paths and `distclean`
---
 Makefile.am         | 1 +
 include/Makefile.am | 4 ++--
 src/Makefile.am     | 3 ++-
 test/Makefile.am    | 3 ++-
 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

-- 


Reply via email to