Blame view

guimb/Makefile.am 1.27 KB
1
AUTOMAKE_OPTIONS = ../lib/ansi2knr
2
INCLUDES =-I. -I$(top_builddir) -I$(srcdir) -I$(top_srcdir)/lib -I$(top_srcdir)/include \
3 4
 -I$(top_srcdir)/libmu_scm

Sergey Poznyakoff authored
5 6
SUBDIRS=scm

7 8 9 10 11 12
bin_PROGRAMS=@GUIMB@
EXTRA_PROGRAMS=guimb
guimb_SOURCES=main.c collect.c util.c run_scm.c guimb.h 
guimb_LDADD = ../libmu_scm/libmu_scm.a ../mailbox/libmailbox.la \
 ../lib/libmailutils.a @GUILE_LIBS@ 

13
pkgdata_DATA=@GUILE_PROCEDURES_TXT@
14 15
DOT_X_FILES=run_scm.x
DOT_DOC_FILES=run_scm.doc
16
BUILT_SOURCES=@GUILE_BUILT_SOURCES@
17

Jeff Bailey authored
18 19 20
DISTCLEANFILES=$(DOT_X_FILES) $(DOT_DOC_FILES)


21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
CPPFLAGS=-DDATADIR=\"$(pkgdatadir)\"
ETAGS_ARGS = --regex='/SCM_\(GLOBAL_\)?\(G?PROC\|G?PROC1\|SYMBOL\|VCELL\|CONST_LONG\).*\"\([^\"]\)*\"/\3/' \
   --regex='/[ \t]*SCM_[G]?DEFINE1?[ \t]*(\([^,]*\),[^,]*/\1/'

GUILE_DOC_SNARF=$(top_srcdir)/scripts/guile-doc-snarf
SUFFIXES=.x .doc

.c.x:
	$(GUILE_DOC_SNARF) $< $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) \
                           $< > $@ || { rm $@; false; }

.c.doc:
	$(GUILE_DOC_SNARF) $< $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) \
                           $< > /dev/null || { rm $@; false; }

guile-procedures.txt: $(DOT_DOC_FILES)
	cat $(DOT_DOC_FILES) > $@

if MAINTAINER_MODE

## Add -MG to make the .x magic work with auto-dep code.
MKDEP = $(CC) -M -MG $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)

endif