Something went wrong on our end
-
Claus-Justus Heine authoredClaus-Justus Heine authored
Makefile.am 4.35 KiB
SUBDIRS = gnu-compat alberta_util alberta add_ons
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = gen-assemble-fcts.sh mkdoffreemasks.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
pkglibexec_SCRIPTS = libtool
endif
#
# Install the code for the ALBERTA libs. This is useful 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@-@PACKAGE_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 $(top_builddir)/Makefile
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" -o -name ".#*" \) -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
for i in $@/src/[0-9]d/; do ( cd $$i; make ALBERTA_LIBEXEC_PATH=$(abs_top_builddir)/alberta/src/Common realclean ) ; done
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.@PACKAGE@-@VERSION@
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: demo
@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 -o -name ".#*" \) -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 {} \;
rm -rf `find $(distdir)/demo -name .libs`
@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 files in $(distdir)
rm -f `find $(distdir) -name '.cvsignore'`
@echo Deleting backup files in $(distdir)
rm -f `find $(distdir) -name '*~'`
@echo Deleting stale lock-files in $(distdir)
rm -f `find $(distdir) -name '.#*'`
#
# 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-man.pdf
#
# this one requires write access to the source directory. One day one might
# want to automakify alberta/doc/ ...
#
doc/alberta-man.ps:
make -C $(srcdir)/doc/ vclean
make -C $(srcdir)/doc/ alberta-man.ps
doc/alberta-man.pdf:
make -C $(srcdir)/doc/ vclean
make -C $(srcdir)/doc/ alberta-man.pdf
documentation: doc/alberta-man.pdf
dist-hook: documentation
endif