# $HeadURL$ $LastChangedRevision$ # # Preamble # include $(ADEROOT_INCLUDE)/lib/Makefile # # Variables used only in this Makefile # 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 # # Dependencies for module-specific 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 # # Recipes for ADE-standard targets # list_subdirs: echo standard_tests template_modules install: $(ADE_MF_ADEINST_CMD) $(ADE_MF_ADEINST_FLAGS) \ $(LIB_FILES) $(ADE_MF_INSTALL_DIR) # # Recipes for module-specific 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