1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
## Run automake on this file to produce Makefile.in
# This file is part of FIG - Facility for Interactive Generation of figures
#
# Copyright (c) 2016 Thomas Loimer <thomas.loimer@tuwien.ac.at>
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src doc tests
dist_icon_DATA = xfig.png
appdefault_DATA = app-defaults/Fig
dist_applications_DATA = xfig.desktop
dist_compkeydb_DATA = CompKeyDB
EXTRA_DIST = CHANGES FIGAPPS app-defaults splash-image update-version_m4
MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.h.in config.h.in~ configure
if ENABLE_VERSIONING
# The generated Makefile lets configure and config.h.in depend on configure.ac,
# and on all .m4 files. If configure.ac is changed, configure is re-created,
# then config.h, probably only after version.m4 is updated, and configure
# is again recreated and run. Only a nuisance, though.
version.m4: configure.ac Makefile.am src/*.c src/*.h
. ./update-version_m4
endif
# a fragment, to test compilation with different configure-flags
compile-check: distdir
chmod u+w $(distdir)
mkdir $(distdir)/_build $(distdir)/_build/sub
cd $(distdir)/_build/sub \
&& ../../configure --srcdir=../.. --without-xfig-libraries --disable-jpeg \
&& $(MAKE) -j $(AM_MAKEFLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) check \
&& $(MAKE) $(AM_MAKEFLAGS) clean
cd $(distdir)/_build/sub \
../../configure --srcdir=../.. --without-xfig-libraries --disable-xpm --enable-xpm-icon \
&& $(MAKE) -j $(AM_MAKEFLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) check \
&& $(MAKE) $(AM_MAKEFLAGS) clean
xfig_librariesdir = Libraries
if XFIG_LIBRARIES
EXTRA_DIST += $(xfig_librariesdir)
# do not distribute Maps/USA/assemble and Maps/Canada/assemble
# See info automake, 14.3 The dist Hook, for an example with chmod u+w.
dist-hook:
test -d "$(distdir)/$(xfig_librariesdir)/Maps" \
&& cd "$(distdir)/$(xfig_librariesdir)/Maps" && \
for p in USA Canada; do \
test -f "$$p/assemble" \
&& { test -w "$$p" || chmod u+w "$$p"; } \
&& rm -f "$$p/assemble" || :; \
done || :
# Libraries might not be distributed - so test, whether the
# source is there, before trying to copy it to the destination.
install-data-hook:
test -d "$(srcdir)/$(xfig_librariesdir)" && { \
$(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" \
&& cp -Rp "$(srcdir)/$(xfig_librariesdir)" "$(DESTDIR)$(pkgdatadir)" \
&& chmod -R u+rwX "$(DESTDIR)$(pkgdatadir)" || exit 1; } \
|| :
uninstall-local:
test -d "$(DESTDIR)$(pkgdatadir)/$(xfig_librariesdir)" \
&& rm -rf "$(DESTDIR)$(pkgdatadir)/$(xfig_librariesdir)" || :
endif
|