summaryrefslogtreecommitdiff
path: root/Makefile
blob: 4f3436f25b7cdce00df90c2d6ab0cd6519b7be0a (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
48
49
50
51
52
53
#
# INSTALLDIR indicates directory where program is to be installed. 
# Suggested values are "/usr/local/bin" or "/usr/bin".
#
INSTALLDIR = /usr/bin

#
# MANPAGEDIR indicates directory where the fdupes man page is to be 
# installed. Suggested values are "/usr/local/man" or "/usr/man".
#
MANPAGEDIR = /usr/share/man

#
# VERSION determines the program's version number.
#
VERSION = "1.40"

#
# To use the md5sum program for calculating signatures (instead of the
# built in MD5 message digest routines) uncomment the following
# line (try this if you're having trouble with built in code).
#
#EXTERNAL_MD5 = -DEXTERNAL_MD5=\"md5sum\"

#
# This version of fdupes can use a red-black tree structure to
# store file information. This is disabled by default, as it
# hasn't been optimized or verified correct. If you wish to
# enable this untested option, uncomment the following line.
#
#EXPERIMENTAL_RBTREE = -DEXPERIMENTAL_RBTREE

#####################################################################
# no need to modify anything beyond this point                      #
#####################################################################

fdupes: fdupes.c md5/md5.c	
	gcc fdupes.c md5/md5.c $(RPM_OPT_FLAGS) -o fdupes -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(EXPERIMENTAL_RBTREE)

install: fdupes
	cp fdupes $(INSTALLDIR)
	cp fdupes.1 $(MANPAGEDIR)/man1

tarball: clean
	tar --directory=.. -c -z -v -f ../fdupes-$(VERSION).tar.gz fdupes-$(VERSION)

clean:
	rm -f *.o
	rm -f fdupes
	rm -f *~

love:
	@echo You\'re not my type. Go find a human partner.