-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
49 lines (38 loc) · 1.05 KB
/
Makefile.in
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
export CC=gcc
export CFLAGS=-std=c99 -pthread @{CFLAGS} -D_FILE_OFFSET_BITS=64 -D_BSD_SOURCE -D_DEFAULT_SOURCE -pedantic -Werror -Wstrict-aliasing -Wchar-subscripts -Wimplicit -Wsequence-point -Wcast-align -Wstrict-prototypes -Wvla -Wno-unused-result
export LDFLAGS=-pthread
tar_dir=findex-@{VERSION}
all:
$(MAKE) -C src $@
gzip < ffind.1 > ffind.1.gz
findex:
$(MAKE) -C src $@
ffind:
$(MAKE) -C src $@
ffile:
$(MAKE) -C src $@
check:
$(MAKE) -C test $@
tar: distclean
mkdir $(tar_dir)
cp -r configure COPYING ffind.1.in Makefile.in manifesto README src test TODO $(tar_dir)
tar cfz $(tar_dir).tar.gz $(tar_dir)
rm -r $(tar_dir)
clean:
$(MAKE) -C src $@
$(MAKE) -C test $@
rm -f ffind.1.gz
distclean: clean
rm -f Makefile
rm -f ffind.1
rm -f src/ffind.c
install: all
install -s src/findex @{PREFIX}bin/
install -s src/ffind @{PREFIX}bin/
install -s src/ffile @{PREFIX}bin/
install ffind.1.gz /usr/share/man/man1/
uninstall:
rm -f @{PREFIX}bin/findex
rm -f @{PREFIX}bin/ffind
rm -f @{PREFIX}bin/ffile
rm -f /usr/share/man/man1/ffind.1.gz