# # ant tasks in generated build.xmls: # clean -- clean the output (target) directory # compile -- compile code in src/main # compile-tests -- compile test code # get-deps -- download all dependencies # jar -- generate a jar # test -- run test cases # # JAVA_MODULES=cipres-idl-jar cipres-library-jar install-data-hook: # cp $(DESTDIR)$(pkgdatadir)/cipres_registry_template.xml $(DESTDIR)$(pkgdatadir)/cipres_registry.xml uninstall-hook: echo " rm -f '$(DESTDIR)$(sysconfdir)/cipres_registry.xml'" rm -f $(DESTDIR)$(sysconfdir)/cipres_registry.xml cd cipres-idl-jar && ant uninstall cd cipres-library-jar && ant uninstall # Compile the entire package. This is the default target in # Automake-generated Makefiles, but it does not need to be the default # in third-party Makefiles. all: $(install_sh) -d cipres-idl-jar cd cipres-idl-jar && ant jar $(install_sh) -d cipres-library-jar cd cipres-library-jar && ant jar # Copy files to distribute into $(distdir), before a tarball is # constructed. Of course this target is not required if the no-dist # option (see Options) is used. #The variables $(top_distdir) and # $(distdir) (see Dist) will be passed from the outer package to the # subpackage when the distdir target is invoked. These two variables # have been adjusted for the directory that is being recursed into, so # they are ready to use. EXTRA_DIST = \ cipres-idl-jar \ cipres-library-jar \ jars dist-hook: rm -rf `find $(distdir)/cipres-idl-jar -name .svn -type d` rm -rf `find $(distdir)/cipres-library-jar -name .svn -type d` rm -rf `find $(distdir)/jars -name .svn -type d` rm -rf $(distdir)/jars/org/cipres # Install or uninstall files # see http://sources.redhat.com/automake/automake.html#Install install-exec-hook: cd cipres-idl-jar && ant install cd cipres-library-jar && ant install installcheck-local: cd cipres-idl-jar && ant test cd cipres-library-jar && ant test clean: cd cipres-idl-jar && ant clean cd cipres-library-jar && ant clean html: cd cipres-idl-jar && ant javadoc cd cipres-library-jar && ant javadoc