Makefile (bin): Target to build only binaries

Systems utilizing TAME as a build dependency are not interested in
everything else that gets built (tests and docs, primarily).

DEV-7145
main
Mike Gerwitz 2022-09-07 09:28:25 -04:00
parent 1dfd5d89cb
commit 5edefde201
4 changed files with 6 additions and 5 deletions

View File

@ -40,6 +40,7 @@ export DSLC_CLASSPATH
all: applies progtest
all-nodoc: applies progtest
bin-local: applies
# the "applies" are hoxsl-generated stylesheets containing definitions to
# permit partial function application

View File

@ -23,9 +23,7 @@ m4_if(ver, [], [m4_exit(1)])
AC_INIT([tame], [ver], [dev@lovullo.com])
AC_CONFIG_AUX_DIR([tools])
AM_INIT_AUTOMAKE([foreign])
# target that should be be added to everything except doc/
AM_EXTRA_RECURSIVE_TARGETS([all-nodoc])
AM_EXTRA_RECURSIVE_TARGETS([bin all-nodoc])
# provide more granular version numbers based on the version string, using
# the format MAJOR.MINOR.REV[-SUFFIX], where SUFFIX can itself contain

View File

@ -17,7 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
.PHONY: check test modindex dist browserify FORCE
.PHONY: bin check test modindex dist browserify FORCE
namespaces=$(shell find src/ -type d)
nsindex=$(addsuffix /index.js, $(namespaces))
@ -27,6 +27,7 @@ nsindex=$(addsuffix /index.js, $(namespaces))
# used be parent Makefile to prevent doc/ building `all'
all-nodoc: all
all: tame-progtest.js
bin: all
modindex: $(nsindex)
%/index.js: FORCE

View File

@ -2,12 +2,13 @@
dslc_src := $(wildcard com/lovullo/dslc/*.java)
dslc_bin := $(dslc_src:.java=.class)
.PHONY: all all-nodoc dslc clean check info pdf html
.PHONY: all bin all-nodoc dslc clean check info pdf html
export CLASSPATH=$(DSLC_CLASSPATH)
all: dslc
dslc: dslc.jar
bin: dslc
%.class: %.java
javac $<