From d5518640a73e4f5903d656562302a159ec6737a5 Mon Sep 17 00:00:00 2001 From: "Keith W. Campbell" Date: Tue, 5 Jan 2021 17:33:42 -0500 Subject: [PATCH] Add new make target for building java preprocessor Signed-off-by: Keith W. Campbell --- sourcetools/buildj9tools.mk | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sourcetools/buildj9tools.mk b/sourcetools/buildj9tools.mk index 8337939b8e9..5e517da2671 100644 --- a/sourcetools/buildj9tools.mk +++ b/sourcetools/buildj9tools.mk @@ -1,5 +1,5 @@ ################################################################################ -# Copyright (c) 2017, 2017 IBM Corp. and others +# Copyright (c) 2017, 2021 IBM Corp. and others # # This program and the accompanying materials are made available under # the terms of the Eclipse Public License 2.0 which accompanies this @@ -62,7 +62,7 @@ JAVAC_FLAGS := -nowarn -source $(SPEC_LEVEL) -target $(SPEC_LEVEL) JAR_TARGETS := -.PHONY : all clean default distclean +.PHONY : all clean default distclean preprocessor default : all @@ -74,6 +74,8 @@ clean : distclean : clean rm -f $(JAR_TARGETS) +preprocessor : $(DEST_DIR)/jpp.jar + # FindAllFiles # ------------ # param 1 = the directory to search (recursively) @@ -104,7 +106,7 @@ JAR_TARGETS += $$($1_TARGET) all : $$($1_TARGET) -$(DEST_DIR)/$1.jar : $$($1_SOURCES) $$($1_OTHER_FILES) +$$($1_TARGET) : $$($1_SOURCES) $$($1_OTHER_FILES) @echo Building $$@ @rm -rf $$($1_WORK_DIR) @mkdir -p $$($1_WORK_DIR)