# $HeadURL$ $LastChangedRevision$ ############################################################################## # # PREAMBLE # ############################################################################## # The included file will define ADE_MF_MODROOT_DIR include $(ADEROOT)/include/lib/Makefile ############################################################################## # # MODULE-SPECIFIC VARIABLES USED ONLY IN THIS FILE # ############################################################################## LIB_FILES = ade_ffd.pl.spp ade_ffd.sh.spp \ ade_gep.pl.spp ade_gep.sh.spp \ ade_mail.pl.spp ade_mail.sh.spp \ ade_utils.pl.spp ade_utils.sh.spp # No install command or flags specified because we will use the ADE-suggested # values in the install target. ############################################################################## # # MODULE-SPECIFIC DEPENDENCIES FOR STANDARD TARGETS # ############################################################################## # The directory ../include is a bit strange; we cannot have a makefile in # there to install its contents into the target directory; well, actually # we can, but we can't call it 'Makefile' because that would clash with the # name of file we are putting in there to be included by a user at # their-module-compile-time. So we have to call it something else. Unfortunately # this doesn't work well with ADE's standard Makefiles, which ADE is itself # including of course. So the trick is that we don't let ADE go into include # and try to run 'make', as it would for any subdirectory listed by the # 'list_sub_components' target; we deliberately miss 'include' off that list. # But then how, even if we have a Makefile with a different name, do we get # to run 'make install' in that directory? Answer: we do it from here, and # get it to use the right make file. Here are the dependencies which hook it # in. compile: dotdot_include_compile clean: dotdot_include_clean install: dotdot_include_install tests: dotdot_include_tests configure: dotdot_include_configure distclean: dotdot_include_distclean ############################################################################## # # MODULE-SPECIFIC DEPENDENCIES FOR NON-STANDARD TARGETS # ############################################################################## ############################################################################## # # MODULE-SPECIFIC RECIPES FOR STANDARD TARGETS # ############################################################################## lsc: echo standard_tests template_modules install: $(ADE_MF_INSTALL_CMD) $(ADE_MF_INSTALL_FLAGS) $(LIB_FILES) \ $(ADE_MF_INSTALL_DIR) ############################################################################## # # MODULE-SPECIFIC RECIPES FOR NON-STANDARD TARGETS # ############################################################################## dotdot_include_compile: @cd ../include && $(MAKE) -f Makefile.include compile dotdot_include_install: @cd ../include && $(MAKE) -f Makefile.include install dotdot_include_clean: @cd ../include && $(MAKE) -f Makefile.include clean dotdot_include_tests: @cd ../include && $(MAKE) -f Makefile.include tests dotdot_include_configure: @cd ../include && $(MAKE) -f Makefile.include configure dotdot_include_distclean: @cd ../include && $(MAKE) -f Makefile.include distclean