diff options
Diffstat (limited to 'make/leaf.cfg')
-rw-r--r-- | make/leaf.cfg | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/make/leaf.cfg b/make/leaf.cfg index 0dba22970e..0106dc19ce 100644 --- a/make/leaf.cfg +++ b/make/leaf.cfg @@ -55,13 +55,13 @@ endif # # Builtin targets for compilation variants # -debug debug_install: +debug: $(MAKE) -f $(MAKEFILE) MAKEFILE=$(MAKEFILE) "ARCH=${TARGET_ARCH}-debug" \ "CFLAGS_DEBUG=$(CFLAGS_DEBUG_V)" \ "CFLAGS_OPTIMIZE=$(CFLAGS_DEBUG_OPTIMIZE_V)" \ "LDFLAGS_DEBUG=$(LDFLAGS_DEBUG_V)" $(TARGET_VA) -profile profile_install: +profile: $(MAKE) -f $(MAKEFILE) \ MAKEFILE=$(MAKEFILE) "ARCH=${TARGET_ARCH}-profile" \ "CFLAGS_PROFILE=$(CFLAGS_PROFILE_V)" \ @@ -80,8 +80,7 @@ VARIANT-$(TARGET_ARCH)-profile-v = profile VARIANT_VA = $(VARIANT-$(ARCH)-v) # -# TARGET_VA will convert $@ (expected to be 'debug' or -# 'debug_install' or 'profile' etc.) +# TARGET_VA will convert $@ (expected to be 'debug' or 'profile' etc.) # into "" or "install" as appropriate. # Used for variant recursion. # @@ -89,9 +88,6 @@ VARIANT_VA = $(VARIANT-$(ARCH)-v) TARGET_debug_V = all TARGET_profile_V = all -TARGET_debug_install_V = install -TARGET_profile_install_V = install - TARGET_VA = $(TARGET_$@_V) # @@ -107,24 +103,26 @@ LIBSUFFIX_$(TARGET_ARCH)-profile_V=_p LIB_VARIANT=$(LIBSUFFIX_$(ARCH)_V) LIBSUFFIX_VA = $(LIB_VARIANT).a -get: $(SRCS) $(GET_ADDITIONS) - # -# Builtin clean and clobber rules +# Builtin clean and distclean rules # Individual makefiles can add stuff via CLEAN_ADDITIONS and CLOBBER_ADDITIONS # If desperate to save something, they can override CLEAN_OS, CLEAN_CC, etc. # -clean: - $(RM) -r a.out core mon.out gmon.out $(CLEAN_OS) $(CLEAN_CC) - $(RM) -r $(CLEAN_PROTO) $(CLEAN_DEPEND) a.out - $(RM) -r $(VARIANTS) $(CLEAN_ADDITIONS) $(IMPORT_SOURCE) +clean-am: clean-generic + -$(RM) -r $(CLEAN_OS) $(CLEAN_CC) $(CLEAN_DEPEND) + -$(RM) -r $(VARIANTS) +# -$(RM) -r $(IMPORT_SOURCE) -clobber: clean - -$(RCS_CLEAN) - $(RM) .#* - $(RM) -r $(CLOBBER_OS) $(CLOBBER_CC) $(CLOBBER_DEPEND) - $(RM) -r $(CLOBBER_ADDITIONS) a.out +distclean-am: distclean-generic clean-am + -$(RM) -r $(CLOBBER_OS) $(CLOBBER_CC) $(CLOBBER_DEPEND) preinstall-am: preinstall: preinstall-am + +distclean: distclean-am + -$(RM) config.status +clean: clean-am + +.PHONY: distclean distclean-am +.PHONY: clean clean-am |