-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
94 lines (71 loc) · 2.45 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
bin_PROGRAMS = fyfsp
fyfsp_LDADD = $(x11_LIBS)
if CACHING
fyfsp_SOURCES = fyfsp.c window.c xquery.c \
window.h contrib/uthash.h global-types.h xquery.h cache.h cache.c
debug_conf_opt=
else
fyfsp_SOURCES = fyfsp.c window.c xquery.c \
window.h contrib/uthash.h global-types.h xquery.h
debug_conf_opt=--without-tree-caching
endif
if MOUSE_TRACKING
debug_conf_opt+=--with-mouse-tracking
endif
man1_MANS = fyfsp.1
EXTRA_DIST = map-20-clocks.pl render-clock.pl README.pod fyfsp.pod upstart.conf \
fyfsp.1 contrib/keystats.pl colorize-debugs ubuntu-system-install.sh
if UPSTART
upstartdir = $(UPSTARTDIR)
upstart_DATA = fyfsp.conf
endif
README: README.pod
podchecker README.pod
pod2text README.pod > README
.pod.1:
podchecker $<
pod2man --release $(distdir) -c "Annoyed User Commands" --utf8 $< $@
.pod.html:
pod2html $< > $@
edit = sed \
-e 's|[@]bindir[@]|$(bindir)|g'
fyfsp.conf: upstart.conf
$(edit) $(srcdir)/upstart.conf >$@
clean-local:
-chmod u+w -R fyfsp-*.* 2>/dev/null; rm -rf fyfsp-*.*
-[ -f tmp-dir ] && rm -rvf $$( cat tmp-dir || echo /tmp/nononono )
-rm -f fyfsp.conf *.bc *.ll README tmp-dir $(man1_MANS) fyfsp-debug keyfile
tmp-dir:
mktemp -d > tmp-dir
test-install: tmp-dir
+ make --no-print-directory prefix=$$(< tmp-dir) install
@ echo; ls --color=always -Fhal $$(find $$(< tmp-dir) -type f)
test-dist:
+ CONFIG_SITE= make --no-print-directory distcheck
list-dist: dist-xz
echo;echo "+---------------"; \
for i in *.xz; do echo "| $$i"; echo "+-------"; \
tar -Jtvvf $$i; echo; done
sc superclean: clean
git clean -dfx
mylog=./fyfsp.log
fyfsp-log: $(fyfsp_SOURCES) Makefile config.h
grep define.DEBUG_LOG_TO_FILE config.h || ./configure $(debug_conf_opt) --with-debug-log=$(mylog) DEBUG_ALL=1
+ make --no-print-directory fyfsp
mv fyfsp $@
runlog logrun: fyfsp-log
- killall fyfsp-log
./$< &
tail -n 0 -f $(mylog) | ./colorize-debugs
fyfsp-debug: $(fyfsp_SOURCES) Makefile config.h
grep define.DEBUG_LOG_TO_FILE config.h && ./configure $(debug_conf_opt) DEBUG=1 || /bin/true
grep define.DEBUG config.h || ./configure $(debug_conf_opt) DEBUG=1
+ make --no-print-directory fyfsp
mv fyfsp $@
debug run: fyfsp-debug
gdb --batch --eval-command run --eval-command bt ./$< 2>&1 | ./colorize-debugs
# I can't think of any way to actually test this, particularly on a headless
# system like travis-ci ... but if it built and doesn't immediately sagfault,
# that's something I guess
test:
DISPLAY=:$$$$.$$$$ ./fyfsp 2>&1 | grep -q refused