Changes in Makefile.am [c266281:ca1fb26a]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile.am
rc266281 rca1fb26a 1 1 ACLOCAL_AMFLAGS = -I m4 2 2 3 GIT_DESCRIPTION := $(if $(wildcard .git),$(shell git describe --match='barnowl-*' HEAD 2>/dev/null)) 4 GIT_FLAGS := $(if $(GIT_DESCRIPTION),-DGIT_VERSION=$(GIT_DESCRIPTION:barnowl-%=%)) 3 GIT_DESCRIPTION := $(if $(wildcard $(srcdir)/.git),$(shell cd $(srcdir) && git describe --match='barnowl-*' HEAD 2>/dev/null)) 4 VERSION = $(if $(GIT_DESCRIPTION),$(GIT_DESCRIPTION:barnowl-%=%),@VERSION@) 5 -include BUILD_VERSION.mk 5 6 6 bin_PROGRAMS = barnowl.bin 7 FORCE: 8 BUILD_VERSION.mk: $(if $(filter-out $(BUILD_VERSION),$(VERSION)),FORCE) 9 echo 'BUILD_VERSION = $(VERSION)' > $@ 10 11 bin_PROGRAMS = bin/barnowl 7 12 if ENABLE_ZCRYPT 8 13 bin_PROGRAMS += zcrypt 9 14 endif 10 15 11 zcrypt_SOURCES = zcrypt.c filterproc.c 16 zcrypt_SOURCES = zcrypt.c filterproc.c version.c 12 17 13 check_PROGRAMS = tester.bin 18 check_PROGRAMS = bin/tester 19 dist_check_DATA = t 20 dist_check_SCRIPTS = runtests.sh 14 21 15 barnowl_bin_SOURCES = $(BASE_SRCS) \ 16 owl.h owl_perl.h config.h \ 17 owl.c \ 18 $(GEN_C) $(GEN_H) 22 noinst_SCRIPTS = barnowl 23 check_SCRIPTS = tester 19 24 20 man_MANS = doc/barnowl.1 21 doc_DATA = doc/intro.txt doc/advanced.txt 25 barnowl tester: %: barnowl-wrapper.in bin/% Makefile 26 sed \ 27 -e 's,[@]abs_srcdir[@],$(abs_srcdir),g' \ 28 -e 's,[@]abs_builddir[@],$(abs_builddir),g' \ 29 $< > $@ 30 chmod +x $@ 22 31 23 barnowl_bin_LDADD = compat/libcompat.a libfaim/libfaim.a 32 bin_barnowl_SOURCES = $(BASE_SRCS) \ 33 owl.h owl_perl.h \ 34 owl.c 35 nodist_bin_barnowl_SOURCES = $(GEN_C) $(GEN_H) 24 36 25 tester_bin_SOURCES = $(BASE_SRCS) \ 26 owl.h owl_perl.h config.h \ 27 $(GEN_C) $(GEN_H) \ 37 dist_man_MANS = doc/barnowl.1 38 dist_doc_DATA = doc/intro.txt doc/advanced.txt 39 40 bin_barnowl_LDADD = compat/libcompat.a libfaim/libfaim.a 41 42 bin_tester_SOURCES = $(BASE_SRCS) \ 43 owl.h owl_perl.h \ 28 44 tester.c 45 nodist_bin_tester_SOURCES = $(GEN_C) $(GEN_H) 29 46 30 tester_bin_LDADD = compat/libcompat.a libfaim/libfaim.a47 bin_tester_LDADD = compat/libcompat.a libfaim/libfaim.a 31 48 32 49 TESTS=runtests.sh 33 50 34 AM_CPPFLAGS = -I$(top_srcdir)/\51 AM_CPPFLAGS = \ 35 52 -I$(top_srcdir)/libfaim/ \ 36 53 -DDATADIR='"$(pkgdatadir)"' \ 37 -DBINDIR='"$(bindir)"' \ 38 $(GIT_FLAGS) 54 -DBINDIR='"$(bindir)"' 39 55 40 56 CODELIST_SRCS=message.c mainwin.c popwin.c zephyr.c messagelist.c \ 41 commands.c global.c text.c fmtext.c editwin.c util.c logging.c \ 57 commands.c global.c text.c fmtext.c editwin.c \ 58 util.c logging.c \ 42 59 perlconfig.c keys.c functions.c zwrite.c viewwin.c help.c filter.c \ 43 60 regex.c history.c view.c dict.c variable.c filterelement.c pair.c \ … … 45 62 aim.c buddy.c buddylist.c style.c errqueue.c \ 46 63 zbuddylist.c popexec.c select.c wcwidth.c \ 47 mainpanel.c msgwin.c sepbar.c editcontext.c signal.c 64 mainpanel.c msgwin.c sepbar.c editcontext.c signal.c closures.c 48 65 49 NORMAL_SRCS = filterproc.c window.cwindowcb.c66 NORMAL_SRCS = filterproc.c filterproc.h window.c window.h windowcb.c 50 67 51 68 BASE_SRCS = $(CODELIST_SRCS) $(NORMAL_SRCS) 52 69 53 GEN_C = varstubs.c perlglue.c 54 GEN_H = owl_prototypes.h 70 GEN_C = varstubs.c perlglue.c gmarshal_funcs.c version.c version.c.new 71 GEN_H = owl_prototypes.h owl_prototypes.h.new gmarshal_funcs.h 55 72 56 BUILT_SOURCES = $(GEN_ C) $(GEN_H)73 BUILT_SOURCES = $(GEN_H) 57 74 58 75 # Only copy file into place if file.new is different 59 %: %.new76 owl_prototypes.h version.c: %: %.new 60 77 @diff -U0 $@ $< || { \ 61 78 test -f $@ && echo '$@ changed!'; \ … … 65 82 proto: owl_prototypes.h 66 83 67 perlglue.c: perlglue.xs $(TYPEMAP)68 $(AM_V_GEN)perl $(XSUBPPDIR)/xsubpp $(XSUBPPFLAGS) -prototypes perlglue.xs > perlglue.c84 perlglue.c: perlglue.xs typemap 85 $(AM_V_GEN)perl $(XSUBPPDIR)/xsubpp $(XSUBPPFLAGS) -prototypes $< > $@ 69 86 70 87 varstubs.c: stubgen.pl variable.c … … 74 91 $(AM_V_GEN)perl $< $(sort $(filter-out $<,$+)) > $@ 75 92 93 version.c.new: Makefile BUILD_VERSION.mk 94 $(AM_V_GEN)echo 'const char *version = "$(VERSION)";' > $@ 95 96 gmarshal_funcs.h: marshal_types 97 glib-genmarshal --header $< > $@ 98 gmarshal_funcs.c: marshal_types 99 glib-genmarshal --body $< > $@ 100 76 101 # For emacs flymake-mode 77 102 check-syntax: proto 78 103 $(COMPILE) -Wall -Wextra -pedantic -fsyntax-only $(CHK_SOURCES) 79 104 80 install-data-local: 81 $(mkinstalldirs) ${DESTDIR}${pkgdatadir}/lib 82 (cd perl/lib && tar -cf - . ) | (cd ${DESTDIR}${pkgdatadir}/lib && tar -xf - ) 83 84 do_transform = $(shell echo '$(1)' | sed '$(transform)') 85 install-exec-hook: 86 mv -f $(DESTDIR)$(bindir)/$(call do_transform,barnowl.bin) \ 87 $(DESTDIR)$(bindir)/$(call do_transform,barnowl) 105 CLEANFILES = $(BUILT_SOURCES) $(GEN_C) $(noinst_SCRIPTS) $(check_SCRIPTS) BUILD_VERSION.mk 106 EXTRA_DIST = \ 107 autogen.sh \ 108 barnowl-wrapper.in \ 109 codelist.pl \ 110 doc/code.txt \ 111 doc/owl-window.txt \ 112 doc/releasing-barnowl.txt \ 113 examples \ 114 marshal_types \ 115 perlglue.xs \ 116 scripts \ 117 stubgen.pl \ 118 typemap 88 119 89 120 SUBDIRS = compat libfaim perl
Note: See TracChangeset
for help on using the changeset viewer.