3 include $(TOPDIR)/common.mk
14 include libi3/libi3.mk
16 include i3-config-wizard/i3-config-wizard.mk
17 include i3-msg/i3-msg.mk
18 include i3-input/i3-input.mk
19 include i3-nagbar/i3-nagbar.mk
20 include i3bar/i3bar.mk
21 include i3-dump-log/i3-dump-log.mk
24 real-all: $(ALL_TARGETS)
26 install: $(INSTALL_TARGETS)
29 [ ! -d i3-${VERSION} ] || rm -rf i3-${VERSION}
30 [ ! -e i3-${VERSION}.tar.bz2 ] || rm i3-${VERSION}.tar.bz2
32 cp i3-migrate-config-to-v4 generate-command-parser.pl i3-sensible-* i3.config.keycodes DEPENDS LICENSE PACKAGE-MAINTAINER RELEASE-NOTES-${VERSION} i3.config i3.xsession.desktop i3.applications.desktop pseudo-doc.doxygen Makefile i3-${VERSION}
33 cp -r src libi3 i3-msg i3-nagbar i3-config-wizard i3bar i3-dump-log yajl-fallback include man parser-specs i3-${VERSION}
34 # Only copy toplevel documentation (important stuff)
35 mkdir i3-${VERSION}/docs
36 # Pre-generate documentation
39 # Cleanup τεχ output files
40 find docs -regex ".*\.\(aux\|out\|log\|toc\|bm\|dvi\|log\)" -exec rm '{}' \;
41 find docs -maxdepth 1 -type f ! \( -name "*.xcf" -or -name "*.svg" \) -exec cp '{}' i3-${VERSION}/docs \;
42 # Only copy source code from i3-input
43 mkdir i3-${VERSION}/i3-input
44 find i3-input -maxdepth 1 -type f \( -name "*.c" -or -name "*.h" -or -name "Makefile" \) -exec cp '{}' i3-${VERSION}/i3-input \;
45 sed -e 's/^GIT_VERSION:=\(.*\)/GIT_VERSION:=$(shell /bin/echo '${GIT_VERSION}' | sed 's/\\/\\\\/g')/g;s/^VERSION:=\(.*\)/VERSION:=${VERSION}/g' common.mk > i3-${VERSION}/common.mk
46 # Pre-generate a manpage to allow distributors to skip this step and save some dependencies
48 cp man/*.1 i3-${VERSION}/man/
49 cp i3bar/doc/*.1 i3-${VERSION}/i3bar/doc/
50 tar cfj i3-${VERSION}.tar.bz2 i3-${VERSION}
53 clean: $(CLEAN_TARGETS)
54 (which lcov >/dev/null 2>&1 && lcov -d . --zerocounters) || true
57 distclean: clean $(DISTCLEAN_TARGETS)
60 rm -f /tmp/i3-coverage.info
61 rm -rf /tmp/i3-coverage
62 lcov -d . -b . --capture -o /tmp/i3-coverage.info
63 genhtml -o /tmp/i3-coverage/ /tmp/i3-coverage.info