resetting manifest requested domain to floor
[platform/upstream/fdupes.git] / Makefile
1 #
2 # INSTALLDIR indicates directory where program is to be installed. 
3 # Suggested values are "/usr/local/bin" or "/usr/bin".
4 #
5 INSTALLDIR = /usr/bin
6
7 #
8 # MANPAGEDIR indicates directory where the fdupes man page is to be 
9 # installed. Suggested values are "/usr/local/man" or "/usr/man".
10 #
11 MANPAGEDIR = /usr/share/man
12
13 #
14 # VERSION determines the program's version number.
15 #
16 VERSION = "1.40"
17
18 #
19 # To use the md5sum program for calculating signatures (instead of the
20 # built in MD5 message digest routines) uncomment the following
21 # line (try this if you're having trouble with built in code).
22 #
23 #EXTERNAL_MD5 = -DEXTERNAL_MD5=\"md5sum\"
24
25 #
26 # This version of fdupes can use a red-black tree structure to
27 # store file information. This is disabled by default, as it
28 # hasn't been optimized or verified correct. If you wish to
29 # enable this untested option, uncomment the following line.
30 #
31 #EXPERIMENTAL_RBTREE = -DEXPERIMENTAL_RBTREE
32
33 #####################################################################
34 # no need to modify anything beyond this point                      #
35 #####################################################################
36
37 fdupes: fdupes.c md5/md5.c      
38         gcc fdupes.c md5/md5.c $(RPM_OPT_FLAGS) -o fdupes -DVERSION=\"$(VERSION)\" $(EXTERNAL_MD5) $(EXPERIMENTAL_RBTREE)
39
40 install: fdupes
41         cp fdupes $(INSTALLDIR)
42         cp fdupes.1 $(MANPAGEDIR)/man1
43
44 tarball: clean
45         tar --directory=.. -c -z -v -f ../fdupes-$(VERSION).tar.gz fdupes-$(VERSION)
46
47 clean:
48         rm -f *.o
49         rm -f fdupes
50         rm -f *~
51
52 love:
53         @echo You\'re not my type. Go find a human partner.