Permalink
Browse files

fixing make install, thx to ymotongpo for the bug report

  • Loading branch information...
1 parent 7c8808c commit 3e4dc5e3410be603a6f4870c904ee54a08f850f5 pad committed Feb 10, 2011
Showing with 14 additions and 11 deletions.
  1. +6 −4 Makefile
  2. +0 −4 configure
  3. +8 −3 readme.txt
View
10 Makefile
@@ -542,15 +542,17 @@ VERSION=$(shell cat globals/config.ml.in |grep version |perl -p -e 's/.*"(.*)".*
# note: don't remove DESTDIR, it can be set by package build system like ebuild
install: all
+ mkdir -p $(DESTDIR)$(BINDIR)
mkdir -p $(DESTDIR)$(SHAREDIR)
- cp -a config/ $(DESTDIR)$(SHAREDIR)
+ cp -a $(PROGS) $(BINDIR)
+ cp -a data $(DESTDIR)$(SHAREDIR)
@echo ""
- @echo "You can also install XXX by copying the program XXX"
- @echo "(available in this directory) anywhere you want and"
+ @echo "You can also install pfff by copying the programs"
+ @echo "available in this directory anywhere you want and"
@echo "give it the right options to find its configuration files."
uninstall:
- rm -rf $(DESTDIR)$(SHAREDIR)/config/
+ rm -rf $(DESTDIR)$(SHAREDIR)/data
version:
@echo $(VERSION)
View
4 configure
@@ -405,10 +405,6 @@ pr2 "Generating commons/features.ml";
pr2 "Generating globals/config.ml";
#old: my $command = "perl -p -i -e 's#Not_found.\*#Not_found->\\\"$src\\\"#' globals/config.ml";
-
-$src="/home/pad/shared-pfff";
-pr2 "WARNING: Using facebook specific stuff for now, src = $src";
-
my $command = "perl -p -e 's#Not_found.\*#Not_found->\\\"$src\\\"#' globals/config.ml.in > globals/config.ml";
`$command`;
View
11 readme.txt
@@ -51,15 +51,15 @@ You can also look at ./pfff --help
Usage for pfff_db:
-------------------
- $ ./pfff_db -lang ml -o /tmp/pfff.db ~/pfff
+ $ ./pfff_db -lang ml -o /tmp/pfff.json ~/pfff
to analyze all the .ml and .mli files under ~/pfff and store metadata
-information (the database) in /tmp/pfff.db
+information (the database) in /tmp/pfff.json
Usage for codemap:
------------------------
- $ ./codemap -with_info /tmp/pfff.db ~/pfff
+ $ ./codemap -with_info /tmp/pfff.json ~/pfff
This should launch a gtk-based GUI that allows you to visualize
source code and perform some code search.
@@ -82,3 +82,8 @@ Once this is done you can use some of the flags of pfff_db_heavy to
do some analysis as in:
$ ./pfff_db_heavy -deadcode_analysis /tmp/pfff_db/
+
+More information
+----------------------
+
+Look at the pfff wiki here: http://github.com/facebook/pfff/wiki/Main

0 comments on commit 3e4dc5e

Please sign in to comment.