1# -*-makefile-*- 2# Master/java.make 3# 4# Master Makefile rules to build java-based (not necessarily 5# GNUstep) packages. 6# 7# Copyright (C) 2000 Free Software Foundation, Inc. 8# 9# Author: Nicola Pero <nicola@brainstorm.co.uk> 10# 11# This file is part of the GNUstep Makefile Package. 12# 13# This library is free software; you can redistribute it and/or 14# modify it under the terms of the GNU General Public License 15# as published by the Free Software Foundation; either version 3 16# of the License, or (at your option) any later version. 17# 18# You should have received a copy of the GNU General Public 19# License along with this library; see the file COPYING. 20# If not, write to the Free Software Foundation, 21# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 23ifeq ($(RULES_MAKE_LOADED),) 24include $(GNUSTEP_MAKEFILES)/rules.make 25endif 26 27JAVA_PACKAGE_NAME := $(strip $(JAVA_PACKAGE_NAME)) 28 29 30# Parallel building here is probably of little help since most 31# GNUmakefiles will have a single java package. There is no point in 32# having more than one. 33internal-all:: $(JAVA_PACKAGE_NAME:=.all.java-package.variables) 34 35internal-jar:: $(JAVA_PACKAGE_NAME:=.jar.java-package.variables) 36 37internal-install:: $(JAVA_PACKAGE_NAME:=.install.java-package.variables) 38 39internal-uninstall:: $(JAVA_PACKAGE_NAME:=.uninstall.java-package.variables) 40 41internal-clean:: $(JAVA_PACKAGE_NAME:=.clean.java-package.variables) 42 43internal-distclean:: 44 45JAVA_PACKAGES_WITH_SUBPROJECTS = $(strip $(foreach java-package,$(JAVA_PACKAGE_NAME),$(patsubst %,$(java-package),$($(java-package)_SUBPROJECTS)))) 46ifneq ($(JAVA_PACKAGES_WITH_SUBPROJECTS),) 47internal-distclean:: $(JAVA_PACKAGES_WITH_SUBPROJECTS:=.distclean.java-package.subprojects) 48endif 49 50$(JAVA_PACKAGE_NAME): 51 $(ECHO_NOTHING_RECURSIVE_MAKE)$(MAKE) -f $(MAKEFILE_NAME) --no-print-directory $@.all.java-package.variables$(END_ECHO_RECURSIVE_MAKE) 52