Skip to content

Commit

Permalink
fix clean targets so make distcheck works.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Mazieres committed Jul 15, 2015
1 parent bf5ec90 commit 23bb021
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 15 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
/src/scp/Stellar-SCP.h
/src/StellarCoreVersion.h
/src/xdr/*.h
/README
/Makefile
/Makefile.in
/aclocal.m4
Expand Down
12 changes: 3 additions & 9 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ACLOCAL_AMFLAGS = -I m4
include $(top_srcdir)/common.mk

# Can't use SUBDIRS for sub-packages as we don't want make install going there
DIST_SUBDIRS = $(SUBDIRS) $(PKGCONFIG_SUBDIRS)
DIST_SUBDIRS = src $(PKGCONFIG_SUBDIRS)
.PHONY: $(PKGCONFIG_SUBDIRS)
$(PKGCONFIG_SUBDIRS):
cd $@ && $(MAKE) $(AM_MAKEFLAGS)
Expand Down Expand Up @@ -58,12 +58,6 @@ VALGRIND_FLAGS = --num-callers=30 --trace-children=yes \
VALGRIND_SUPPRESSIONS_FILES = stellar-core.supp

maintainer-clean-local:
+@echo rm -rf `sed -ne 's!^/!!p' .gitignore` Makefile.in
rm -rf `sed -ne 's!^/!!p' .gitignore` Makefile.in
if USE_AFL_FUZZ
+@echo rm -rf fuzz-testcases fuzz-findings
rm -rf fuzz-testcases fuzz-findings
endif
cd $(srcdir) && rm -rf `sed -ne 's!^/!!p' .gitignore` *~ .gitignore~

README: README.md
$(AM_V_GEN)cp $< $@
CLEANFILES = stellar*.log test-suite.log .gitignore~ *~
1 change: 1 addition & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Please see README.md.
6 changes: 6 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

# Public domain

case "$0" in
*/*)
cd $(dirname $0)
;;
esac

case "$1" in
--skip-submodules|-s)
skip_submodules=yes
Expand Down
10 changes: 5 additions & 5 deletions common.mk
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Hand-written file with variables common to all makefiles

CPPFLAGS = -DASIO_SEPARATE_COMPILATION=1 -DSQLITE_OMIT_LOAD_EXTENSION=1
CPPFLAGS += -I"$(top_srcdir)" -I"$(top_srcdir)/src" -I"$(top_builddir)/src"
CPPFLAGS += $(libsodium_CFLAGS) $(xdrpp_CFLAGS) $(libmedida_CFLAGS) \
AM_CPPFLAGS = -DASIO_SEPARATE_COMPILATION=1 -DSQLITE_OMIT_LOAD_EXTENSION=1
AM_CPPFLAGS += -I"$(top_srcdir)" -I"$(top_srcdir)/src" -I"$(top_builddir)/src"
AM_CPPFLAGS += $(libsodium_CFLAGS) $(xdrpp_CFLAGS) $(libmedida_CFLAGS) \
$(soci_CFLAGS)
CPPFLAGS += -I"$(top_srcdir)/lib" \
AM_CPPFLAGS += -I"$(top_srcdir)/lib" \
-I"$(top_srcdir)/lib/autocheck/include" \
-I"$(top_srcdir)/lib/cereal/include" \
-I"$(top_srcdir)/lib/asio/include" \
Expand All @@ -13,5 +13,5 @@ CPPFLAGS += -I"$(top_srcdir)/lib" \
-I"$(top_srcdir)/lib/soci/src/backends/sqlite3"

if USE_POSTGRES
CPPFLAGS += -DUSE_POSTGRES=1 $(libpq_CFLAGS)
AM_CPPFLAGS += -DUSE_POSTGRES=1 $(libpq_CFLAGS)
endif # USE_POSTGRES
3 changes: 3 additions & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,7 @@ fuzz-clean: always
distclean-local: fuzz-clean
endif # USE_AFL_FUZZ

CLEANFILES = $(BUILT_SOURCES) *~ */*~
MAINTAINERCLEANFILES = $(srcdir)/Makefile.in $(srcdir)/*~ $(srcdir)/*/*~

EXTRA_DIST = $(SRC_X_FILES) src.mk

0 comments on commit 23bb021

Please sign in to comment.