summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-07-03 15:01:59 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-07-03 14:58:52 -0400
commitded5b1e764fdc97403bd829b02106ae8b9af10a4 (patch)
treecdfb40fe34435dcfef70a0a94663b993fc25227e /Makefile.am
parentce80bb2688a6eb1f6c3c5fcfea7d3382e15cc1d0 (diff)
build: fix examples dist based on various configure flags
this would previously break if: * cxx bindings were disabled * elua was disabled * base configure disabled examples and dist build disabled examples * base configure disabled examples and dist build enabled examples it still breaks if: * base configure disables examples and dist build enables examples
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index 939687b..a818b4e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -437,7 +437,13 @@ endif
437EXTRA_DIST += $(systemdunits_DATA) 437EXTRA_DIST += $(systemdunits_DATA)
438 438
439 439
440.PHONY: doc benchmark examples install-examples 440PHONIES = doc benchmark
441
442if ALWAYS_BUILD_EXAMPLES
443PHONIES += examples install-examples
444endif
445
446.PHONY: $(PHONIES)
441 447
442# Documentation 448# Documentation
443 449
@@ -495,13 +501,13 @@ benchmark:
495 @cd benchmark && ../src/benchmarks/eo/eo_bench$(EXEEXT) `date +%F_%s` 501 @cd benchmark && ../src/benchmarks/eo/eo_bench$(EXEEXT) `date +%F_%s`
496 502
497# examples 503# examples
498 504if ALWAYS_BUILD_EXAMPLES
499examples: 505examples:
500 @$(MAKE) $(AM_MAKEFLAGS) -C src examples 506 @$(MAKE) $(AM_MAKEFLAGS) -C src examples
501 507
502install-examples: 508install-examples:
503 @$(MAKE) $(AM_MAKEFLAGS) -C src install-examples 509 @$(MAKE) $(AM_MAKEFLAGS) -C src install-examples
504 510endif
505pkgbuild:: 511pkgbuild::
506 @echo "making arch packages" 512 @echo "making arch packages"
507 makepkg -f -p $(top_builddir)/pkgbuild/PKGBUILD 513 makepkg -f -p $(top_builddir)/pkgbuild/PKGBUILD