# # 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 cd native && make uninstsall # 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 cd native && make # 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: find "$(distdir)/cipres-idl-jar" -depth -and -name .svn -and -type d -and -exec rm -rf {} \; find "$(distdir)/cipres-library-jar" -depth -and -name .svn -and -type d -and -exec rm -rf {} \; find "$(distdir)/jars" -depth -and -name .svn -and -type d -and -exec rm -rf {} \; 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 cd native && make install installcheck-local: cd cipres-idl-jar && ant test cd cipres-library-jar && ant test check: 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