Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile.am

    r353719a r3624a2c  
    1212
    1313check_PROGRAMS = tester.bin
     14dist_check_DATA = t
     15dist_check_SCRIPTS = runtests.sh
     16
     17bin_SCRIPTS = barnowl
     18check_SCRIPTS = tester
     19
     20barnowl tester: %: barnowl-wrapper.in %.bin Makefile
     21        sed \
     22            -e 's,[@]abs_srcdir[@],$(abs_srcdir),g' \
     23            -e 's,[@]abs_builddir[@],$(abs_builddir),g' \
     24            $< > $@
     25        chmod +x $@
    1426
    1527barnowl_bin_SOURCES = $(BASE_SRCS) \
    16      owl.h owl_perl.h config.h \
    17      owl.c \
    18     $(GEN_C) $(GEN_H)
     28     owl.h owl_perl.h \
     29     owl.c
     30nodist_barnowl_bin_SOURCES = $(GEN_C) $(GEN_H)
    1931
    20 man_MANS = doc/barnowl.1
    21 doc_DATA = doc/intro.txt doc/advanced.txt
     32dist_man_MANS = doc/barnowl.1
     33dist_doc_DATA = doc/intro.txt doc/advanced.txt
    2234
    2335barnowl_bin_LDADD = compat/libcompat.a libfaim/libfaim.a
    2436
    2537tester_bin_SOURCES = $(BASE_SRCS) \
    26      owl.h owl_perl.h config.h \
    27      $(GEN_C) $(GEN_H) \
     38     owl.h owl_perl.h \
    2839     tester.c
     40nodist_tester_bin_SOURCES = $(GEN_C) $(GEN_H)
    2941
    3042tester_bin_LDADD = compat/libcompat.a libfaim/libfaim.a
     
    3244TESTS=runtests.sh
    3345
    34 AM_CPPFLAGS = -I$(top_srcdir)/ \
     46AM_CPPFLAGS = \
    3547           -I$(top_srcdir)/libfaim/ \
    3648           -DDATADIR='"$(pkgdatadir)"' \
     
    4860     mainpanel.c msgwin.c sepbar.c editcontext.c signal.c closures.c
    4961
    50 NORMAL_SRCS = filterproc.c window.c windowcb.c
     62NORMAL_SRCS = filterproc.c filterproc.h window.c window.h windowcb.c
    5163
    5264BASE_SRCS = $(CODELIST_SRCS) $(NORMAL_SRCS)
    5365
    5466GEN_C = varstubs.c perlglue.c gmarshal_funcs.c
    55 GEN_H = owl_prototypes.h gmarshal_funcs.h
     67GEN_H = owl_prototypes.h owl_prototypes.h.new gmarshal_funcs.h
    5668
    5769BUILT_SOURCES = $(GEN_C) $(GEN_H)
     
    6678proto: owl_prototypes.h
    6779
    68 perlglue.c: perlglue.xs $(TYPEMAP)
    69         $(AM_V_GEN)perl $(XSUBPPDIR)/xsubpp $(XSUBPPFLAGS) -prototypes perlglue.xs > perlglue.c
     80perlglue.c: perlglue.xs typemap
     81        $(AM_V_GEN)perl $(XSUBPPDIR)/xsubpp $(XSUBPPFLAGS) -prototypes $< > $@
    7082
    7183varstubs.c: stubgen.pl variable.c
     
    8496        $(COMPILE) -Wall -Wextra -pedantic -fsyntax-only $(CHK_SOURCES)
    8597
    86 install-data-local:
    87         $(mkinstalldirs) ${DESTDIR}${pkgdatadir}/lib
    88         (cd perl/lib && tar -cf - . ) | (cd ${DESTDIR}${pkgdatadir}/lib && tar -xf - )
    89 
    9098do_transform = $(shell echo '$(1)' | sed '$(transform)')
    9199install-exec-hook:
     
    93101              $(DESTDIR)$(bindir)/$(call do_transform,barnowl)
    94102
     103uninstall-local:
     104        rm -f $(DESTDIR)$(bindir)/$(call do_transform,barnowl)
     105
     106CLEANFILES = $(BUILT_SOURCES) $(bin_SCRIPTS) $(check_SCRIPTS)
     107EXTRA_DIST = \
     108    autogen.sh \
     109    barnowl-wrapper.in \
     110    codelist.pl \
     111    doc \
     112    examples \
     113    marshal_types \
     114    perlglue.xs \
     115    scripts \
     116    stubgen.pl \
     117    typemap
     118
    95119SUBDIRS = compat libfaim perl
Note: See TracChangeset for help on using the changeset viewer.