diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-07 09:30:22 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-11-07 09:30:22 -0800 |
commit | 689298ab0fd25c5441b219c82438c478355f1bb4 (patch) | |
tree | 578aac75af7578378861bfa30e110b6d71123b8d /Makefile | |
download | fdupes-689298ab0fd25c5441b219c82438c478355f1bb4.tar.gz fdupes-689298ab0fd25c5441b219c82438c478355f1bb4.tar.bz2 fdupes-689298ab0fd25c5441b219c82438c478355f1bb4.zip |
Imported Upstream version 1.40upstream/1.40
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..090ad1d --- /dev/null +++ b/Makefile @@ -0,0 +1,53 @@ +# +# INSTALLDIR indicates directory where program is to be installed. +# Suggested values are "/usr/local/bin" or "/usr/bin". +# +INSTALLDIR = /usr/local/bin + +# +# MANPAGEDIR indicates directory where the fdupes man page is to be +# installed. Suggested values are "/usr/local/man" or "/usr/man". +# +MANPAGEDIR = /usr/local/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 -Wall -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. |