summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 28e19e76cf262934b03715fbf0fe7260d14e51dd (plain)
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
AM_CPPFLAGS=-I$(srcdir)/deps
bin_PROGRAMS=ncdu

ncdu_SOURCES=\
	src/browser.c\
	src/delete.c\
	src/dirlist.c\
	src/dir_common.c\
	src/dir_export.c\
	src/dir_import.c\
	src/dir_mem.c\
	src/dir_scan.c\
	src/exclude.c\
	src/help.c\
	src/shell.c\
	src/quit.c\
	src/main.c\
	src/path.c\
	src/util.c

noinst_HEADERS=\
	deps/yopt.h\
	deps/khash.h\
	src/browser.h\
	src/delete.h\
	src/dir.h\
	src/dirlist.h\
	src/exclude.h\
	src/global.h\
	src/help.h\
	src/shell.h\
	src/quit.h\
	src/path.h\
	src/util.h


man_MANS=ncdu.1
EXTRA_DIST=ncdu.1 doc/ncdu.pod

# Don't "clean" ncdu.1, it should be in the tarball so that pod2man isn't a
# build dependency for those who use the tarball.
ncdu.1: $(srcdir)/doc/ncdu.pod
	pod2man --center "ncdu manual" --release "@PACKAGE@-@VERSION@" "$(srcdir)/doc/ncdu.pod" >ncdu.1

update-deps:
	wget -q https://raw.github.com/attractivechaos/klib/master/khash.h -O "$(srcdir)/deps/khash.h"
	wget -q http://g.blicky.net/ylib.git/plain/yopt.h -O "$(srcdir)/deps/yopt.h"