Something went wrong on our end
-
Claus-Justus Heine authoredClaus-Justus Heine authored
Makefile.am 3.96 KiB
SUBDIRS = gnu-compat alberta_util alberta add_ons
ACLOCAL_AMFLAGS = -I ./m4
EXTRA_DIST = gen-assemble-fcts.sh
#
# install the libtool-script in the libexecdir s.t. Makefile.alberta
# can use it even if the ALBERTA _sources_ are deleted.
#
if INSTALL_LIBTOOL
BUILT_SOURCES = libtool
pkglibexecdir = @libexecdir@/@PACKAGE@
pkglibexec_SCRIPTS = libtool
endif
#
# Install the code for the ALBERTA libs. This is useful if when making an
# rpm package including debug libs.
#
install_code:
mkdir -p $(DESTDIR)$(prefix)/src/alberta
cp $(top_srcdir)/alberta/src/*/*.c $(DESTDIR)$(prefix)/src/alberta/
uninstall_code:
rm -rf $(prefix)/src/alberta
#
# make a DEMO tar-ball and install it in pkgdatadir for later use
#
DEMO = @PACKAGE_NAME@-@VERSION@-demo
pkgdata_DATA = $(DEMO).tar.gz
demo-tarball: $(DEMO).tar.gz
$(DEMO).tar.gz: $(DEMO)
$(TAR_PROGRAM) cf - $(DEMO) | $(GZIP_PROGRAM) -9 > $@
demo: @DEMOSOURCES@ $(top_builddir)/config.status
echo $?
@case '$?' in \
*config.status*) \
echo ' $(SHELL) ./config.status'; \
$(SHELL) ./config.status;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
esac;
$(DEMO): demo
mkdir -p $@
$(TAR_PROGRAM) cf - -C $< . | $(TAR_PROGRAM) xf - -C $@
find $@ \( -name "*~" -o -name "*.o" \) -exec rm -f \{\} \;
for i in `find $@ -name ".svn"`; do rm -rf $$i; done
for i in `find $@ -name ".libs"`; do rm -rf $$i; done
rm -f $@/src/[0-9]d/Makefile.in
clean-local:
-rm -rf $(DEMO)
-rm -f $(DEMO).tar.gz
distclean-local:
if ! test "$(srcdir)" = "."; then\
chmod -R u+rwX demo;\
rm -rf demo;\
fi
rm -f libtool.alberta2
if MAINTAINER_MODE
# These targets only makes sense for maintainers!!
svn-clean:
@echo Fixing package for svn commit...
find . -name \*~ -exec rm -rf {} \;
find ./alberta ./alberta_util -name Makefile.in -exec rm -rf {} \;
find ./demo ./alberta ./alberta_util -name Makefile -exec rm -rf {} \;
find ./demo \( -name \*~ -o -name \*.o -o -name \*.lo \) -exec /bin/rm -f {} \;
find ./demo \( -name ellipt -o -name ellipt2 -o -name heat -o -name nonlin \) -exec /bin/rm -f {} \;
find ./demo -name Makefile -exec /bin/rm -f {} \;
cp -f .cvsignore admin/
cp -f configure.ac admin/
cp -f Makefile.am admin/
cp -f config.h.in admin/
cp -f AUTHORS admin/
cp -f COPYING admin/
cp -f ChangeLog admin/
cp -f MAINTENANCE admin/
cp -f NEWS admin/
cp -f README admin/
cp -f INSTALL admin/
dist-hook:
@echo Copying demo directory to $(distdir)
cp -pR demo/. $(distdir)/demo/.
@echo Cleaning up demo directory in $(distdir)
find $(distdir)/demo \( -name \*~ -o -name \*.o -o -name \*.lo \) -exec /bin/rm -f {} \;
find $(distdir)/demo \( -name ellipt -o -name heat -o -name nonlin \) -exec /bin/rm -f {} \;
find $(distdir)/demo -name Makefile -exec /bin/rm -f {} \;
@echo Deleting .svn directories in $(distdir)
rm -rf `find $(distdir) -name .svn -a -type d`
@echo Deleting CVS directories in $(distdir)
rm -rf `find $(distdir) -name CVS`
@echo Deleting .cvsignore file in $(distdir)
rm -f `find $(distdir) -name '.cvsignore'`
#
# NOTE: you better have GRAPE installed properly before doing this.
#
# This target does not depend on any specific compilers, but we have
# to enable all optional ALBERTA flavours, and we need GRAPE,
# otherwise the grape-interface will not be included into the
# distribution.
#
generate-alberta-dist:
./generate-alberta-automakefiles.sh
autoreconf
./configure --enable-maintainer-mode --prefix=@prefix@
make distcheck
#
# The documentation is available as book.
#
#EXTRA_DIST = doc/alberta.pdf
#
# this one requires write access to the source directory. One day one might
# want to automakify alberta/doc/ ...
#
doc/alberta.ps:
make -C $(srcdir)/doc/ vclean
make -C $(srcdir)/doc/ alberta.ps
doc/alberta.pdf:
make -C $(srcdir)/doc/ vclean
make -C $(srcdir)/doc/ alberta.pdf
documentation: doc/alberta.pdf
dist-hook: documentation
endif