Fix building and installing package.
authorRafał Długołęcki <rafal@dlugolecki.net.pl>
Wed, 8 Apr 2015 21:22:53 +0000 (23:22 +0200)
committerRafał Długołęcki <rafal@dlugolecki.net.pl>
Wed, 8 Apr 2015 21:22:53 +0000 (23:22 +0200)
20 files changed:
Makefile.am
configure.ac
include/Makefile.am [new file with mode: 0644]
include/algorithm.h [moved from src/algorithm.h with 100% similarity]
include/chromosome.h [moved from src/chromosome.h with 100% similarity]
include/condition/condition.h [moved from src/condition/condition.h with 100% similarity]
include/condition/generationLimitCondition.h [moved from src/condition/generationLimitCondition.h with 100% similarity]
include/crossover/crossover.h [moved from src/crossover/crossover.h with 100% similarity]
include/fitness/example.h [moved from src/fitness/example.h with 100% similarity]
include/fitness/fitness.h [moved from src/fitness/fitness.h with 100% similarity]
include/fitness/wsti.h [moved from src/fitness/wsti.h with 100% similarity]
include/gene.h [moved from src/gene.h with 100% similarity]
include/generation.h [moved from src/generation.h with 100% similarity]
include/generator/bitGenerator.h [moved from src/generator/bitGenerator.h with 100% similarity]
include/generator/generator.h [moved from src/generator/generator.h with 100% similarity]
include/mutation/mutation.h [moved from src/mutation/mutation.h with 100% similarity]
include/selection/linearRankSelection.h [moved from src/selection/linearRankSelection.h with 100% similarity]
include/selection/rouletteSelection.h [moved from src/selection/rouletteSelection.h with 100% similarity]
include/selection/selection.h [moved from src/selection/selection.h with 100% similarity]
tests/Makefile.am

index 77706d61da6f08dfc00e657467e94c441664c551..899ed063cf382ad903b04e7d9182c9b4b9e3395d 100644 (file)
@@ -2,9 +2,6 @@ AUTOMAKE_OPTIONS = gnu subdir-objects
 ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}
 AM_CXXFLAGS=-std=c++11
 
-EXTRA_DIST = \
-    config.rpath
-
 MAINTAINERCLEANFILES = \
     aclocal.m4 \
     config.h.in \
@@ -24,17 +21,20 @@ CLEANFILES = \
     %~ \
     doxyfile.stamp
 
-SUBDIRS = . tests
+SUBDIRS = include . tests
+
+# bin_PROGRAMS = bin/genetic
+noinst_PROGRAMS = bin_genetic
 
-bin_PROGRAMS = bin/genetic
 dist_noinst_SCRIPTS = autogen.sh
 
-bin_genetic_SOURCES = \
+nodist_bin_genetic_SOURCES = \
     src/main.cpp
 
+
 bin_genetic_CPPFLAGS = \
     $(bin_genetic_CFLAGS) \
-    -I$(top_srcdir)/src \
+    -I$(top_srcdir)/include \
     -Wall -pedantic -Wextra \
     -Wl,--export-dynamic
 
@@ -42,5 +42,3 @@ bin_genetic_LDADD = \
     $(bin_genetic_LIBS)
 
 bin_genetic_LDFLAGS = $(LTLIBINTL)
-
-.PHONY:
index e8b6f95152f0996a21f72ff30ac879b00b474fa1..d4d776f409dada159878543bc669edc9559248ab 100644 (file)
@@ -1,11 +1,11 @@
 AC_INIT([Genetic], [0.2], [bugz@dlugolecki.net.pl], [genetic], [http://dlugolecki.net.pl/software/genetic/])
-AC_CANONICAL_SYSTEM
 AC_PREREQ([2.59])
 AM_INIT_AUTOMAKE([1.10 -Wall])
 AC_CONFIG_HEADERS([config.h])
 AC_PROG_CXX
 AC_CONFIG_FILES([
     Makefile
+    include/Makefile
     tests/Makefile
 ])
 
diff --git a/include/Makefile.am b/include/Makefile.am
new file mode 100644 (file)
index 0000000..2938285
--- /dev/null
@@ -0,0 +1,17 @@
+nobase_pkginclude_HEADERS = \
+    gene.h \
+    chromosome.h \
+    generation.h \
+    algorithm.h \
+    condition/condition.h \
+    condition/generationLimitCondition.h \
+    crossover/crossover.h \
+    fitness/fitness.h \
+    fitness/wsti.h \
+    fitness/example.h \
+    generator/generator.h \
+    generator/bitGenerator.h \
+    mutation/mutation.h \
+    selection/selection.h \
+    selection/rouletteSelection.h \
+    selection/linearRankSelection.h
similarity index 100%
rename from src/algorithm.h
rename to include/algorithm.h
similarity index 100%
rename from src/chromosome.h
rename to include/chromosome.h
similarity index 100%
rename from src/fitness/wsti.h
rename to include/fitness/wsti.h
similarity index 100%
rename from src/gene.h
rename to include/gene.h
similarity index 100%
rename from src/generation.h
rename to include/generation.h
index c6bac99aabd31988230e35e79567a985de980d44..ada275ee755799fea0e20a3c5c494e6e2b8d0bb5 100644 (file)
@@ -12,7 +12,7 @@ TESTS = \
 
 noinst_PROGRAMS = $(TESTS)
 
-AM_CXXFLAGS = -O3 -I$(top_srcdir)/src -std=c++11
+AM_CXXFLAGS = -O3 -I$(top_srcdir)/include -std=c++11
 
 gene_create_test_SOURCES  = gene/create.cpp
 gene_copy_test_SOURCES  = gene/copy.cpp