2 # INSTALLDIR indicates directory where program is to be installed.
3 # Suggested values are "/usr/local/bin" or "/usr/bin".
8 # MANPAGEDIR indicates directory where the fdupes man page is to be
9 # installed. Suggested values are "/usr/local/man" or "/usr/man".
11 MANPAGEDIR = /usr/share/man
14 # VERSION determines the program's version number.
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).
23 #EXTERNAL_MD5 = -DEXTERNAL_MD5=\"md5sum\"
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.
31 #EXPERIMENTAL_RBTREE = -DEXPERIMENTAL_RBTREE
33 #####################################################################
34 # no need to modify anything beyond this point #
35 #####################################################################
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)
41 cp fdupes $(INSTALLDIR)
42 cp fdupes.1 $(MANPAGEDIR)/man1
45 tar --directory=.. -c -z -v -f ../fdupes-$(VERSION).tar.gz fdupes-$(VERSION)
53 @echo You\'re not my type. Go find a human partner.