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
|
# recompile Haskell source only in maintainer mode
if MAINTAINER_MODE
HSRC = hsrc
else
HSRC =
endif
if WITH_LIBCTL
LIBCTL = libctl
else
LIBCTL =
endif
ACLOCAL_AMFLAGS=-I ./m4
if WITH_DOC
DOC = doc
else
DOC =
endif
SUBDIRS = $(HSRC) src $(LIBCTL) tests examples $(DOC)
EXTRA_DIST = COPYRIGHT m4 meep.pc.in
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = meep.pc
if MAINTAINER_MODE
generator:
cd hsrc && $(MAKE) depend && $(MAKE)
else
generator:
endif
libmeep: generator
cd src && $(MAKE)
# add a fake dependency to make sure stuff is built before 'make dist'
if WITH_DOC
COPYRIGHT: generator libmeep
else
COPYRIGHT: generator
endif
# Somewhat hackish. The "right" way to do this is by a dist-hook target,
# but then darcs check will fail because it doesn't run in the darcs
# repository.
darcs-dist: distdir
darcs changes --summary > $(distdir)/ChangeLog
tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
$(am__remove_distdir)
|