Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile.am

    r3624a2c r353719a  
    1212
    1313check_PROGRAMS = tester.bin
    14 dist_check_DATA = t
    15 dist_check_SCRIPTS = runtests.sh
    16 
    17 bin_SCRIPTS = barnowl
    18 check_SCRIPTS = tester
    19 
    20 barnowl 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 $@
    2614
    2715barnowl_bin_SOURCES = $(BASE_SRCS) \
    28      owl.h owl_perl.h \
    29      owl.c
    30 nodist_barnowl_bin_SOURCES = $(GEN_C) $(GEN_H)
     16     owl.h owl_perl.h config.h \
     17     owl.c \
     18    $(GEN_C) $(GEN_H)
    3119
    32 dist_man_MANS = doc/barnowl.1
    33 dist_doc_DATA = doc/intro.txt doc/advanced.txt
     20man_MANS = doc/barnowl.1
     21doc_DATA = doc/intro.txt doc/advanced.txt
    3422
    3523barnowl_bin_LDADD = compat/libcompat.a libfaim/libfaim.a
    3624
    3725tester_bin_SOURCES = $(BASE_SRCS) \
    38      owl.h owl_perl.h \
     26     owl.h owl_perl.h config.h \
     27     $(GEN_C) $(GEN_H) \
    3928     tester.c
    40 nodist_tester_bin_SOURCES = $(GEN_C) $(GEN_H)
    4129
    4230tester_bin_LDADD = compat/libcompat.a libfaim/libfaim.a
     
    4432TESTS=runtests.sh
    4533
    46 AM_CPPFLAGS = \
     34AM_CPPFLAGS = -I$(top_srcdir)/ \
    4735           -I$(top_srcdir)/libfaim/ \
    4836           -DDATADIR='"$(pkgdatadir)"' \
     
    6048     mainpanel.c msgwin.c sepbar.c editcontext.c signal.c closures.c
    6149
    62 NORMAL_SRCS = filterproc.c filterproc.h window.c window.h windowcb.c
     50NORMAL_SRCS = filterproc.c window.c windowcb.c
    6351
    6452BASE_SRCS = $(CODELIST_SRCS) $(NORMAL_SRCS)
    6553
    6654GEN_C = varstubs.c perlglue.c gmarshal_funcs.c
    67 GEN_H = owl_prototypes.h owl_prototypes.h.new gmarshal_funcs.h
     55GEN_H = owl_prototypes.h gmarshal_funcs.h
    6856
    6957BUILT_SOURCES = $(GEN_C) $(GEN_H)
     
    7866proto: owl_prototypes.h
    7967
    80 perlglue.c: perlglue.xs typemap
    81         $(AM_V_GEN)perl $(XSUBPPDIR)/xsubpp $(XSUBPPFLAGS) -prototypes $< > $@
     68perlglue.c: perlglue.xs $(TYPEMAP)
     69        $(AM_V_GEN)perl $(XSUBPPDIR)/xsubpp $(XSUBPPFLAGS) -prototypes perlglue.xs > perlglue.c
    8270
    8371varstubs.c: stubgen.pl variable.c
     
    9684        $(COMPILE) -Wall -Wextra -pedantic -fsyntax-only $(CHK_SOURCES)
    9785
     86install-data-local:
     87        $(mkinstalldirs) ${DESTDIR}${pkgdatadir}/lib
     88        (cd perl/lib && tar -cf - . ) | (cd ${DESTDIR}${pkgdatadir}/lib && tar -xf - )
     89
    9890do_transform = $(shell echo '$(1)' | sed '$(transform)')
    9991install-exec-hook:
     
    10193              $(DESTDIR)$(bindir)/$(call do_transform,barnowl)
    10294
    103 uninstall-local:
    104         rm -f $(DESTDIR)$(bindir)/$(call do_transform,barnowl)
    105 
    106 CLEANFILES = $(BUILT_SOURCES) $(bin_SCRIPTS) $(check_SCRIPTS)
    107 EXTRA_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 
    11995SUBDIRS = compat libfaim perl
Note: See TracChangeset for help on using the changeset viewer.