Skip to content
Newer
Older
100644 592 lines (459 sloc) 16.1 KB
8634b74 initial import into fresh git repo.
pad authored Sep 22, 2010
1 #############################################################################
2 # Configuration section
3 #############################################################################
4
5 -include Makefile.config
6
7 ##############################################################################
8 # Variables
9 ##############################################################################
10 TOP=$(shell pwd)
11
12 SRC=test.ml main.ml
13
14 TARGET=pfff
15
16 #------------------------------------------------------------------------------
17 # Program related variables
18 #------------------------------------------------------------------------------
19
20 PROGS=pfff
21
22 PROGS+=pfff_tags
23 PROGS+=sgrep
24 PROGS+=spatch
25 PROGS+=ppp
26
3d099fe removed some dependencies to ocamlbdb
pad authored Sep 25, 2010
27 # without bdb pfff_db_light will be incomplete regarding PHP
8634b74 initial import into fresh git repo.
pad authored Sep 23, 2010
28 PROGS+=pfff_db_light
29 PROGS+=scheck
30
685c004 putting back support for persistent berkeley DB
pad authored Oct 2, 2010
31 ifeq ($(FEATURE_BDB), 1)
32 PROGS+=pfff_db
33 endif
34
8634b74 initial import into fresh git repo.
pad authored Sep 23, 2010
35 ifeq ($(FEATURE_VISUAL), 1)
36 PROGS+=pfff_visual
37 endif
38
39 OPTPROGS= $(PROGS:=.opt)
40
41 #------------------------------------------------------------------------------
42 #package dependencies
43 #------------------------------------------------------------------------------
44
45 #format: XXXDIR, XXXCMD, XXXCMDOPT, XXXINCLUDE (if different XXXDIR), XXXCMA
46 #template:
47 # ifeq ($(FEATURE_XXX), 1)
48 # XXXDIR=xxx
49 # XXXCMD= $(MAKE) -C xxx && $(MAKE) xxx -C commons
50 # XXXCMDOPT= $(MAKE) -C xxx && $(MAKE) xxx.opt -C commons
51 # XXXCMA=xxx/xxx.cma commons/commons_xxx.cma
52 # XXXSYSCMA=xxx.cma
53 # XXXINCLUDE=xxx
54 # else
55 # XXXCMD=
56 # XXXCMDOPT=
57 # endif
58
59
60 # cf also below for target pfff_db
61 ifeq ($(FEATURE_BDB), 1)
62 BDBDIR=external/ocamlbdb
63 BDBCMD= $(MAKE) all -C $(BDBDIR) && $(MAKE) bdb -C commons
64 BDBCMDOPT= $(MAKE) all.opt -C $(BDBDIR) && $(MAKE) bdb.opt -C commons
65 BDBCMA=external/ocamlbdb/bdb.cma commons/commons_bdb.cma
66 BDBSYSCMA=
67 else
68 endif
69
70 # cf also below the target for pfff_browser
71 ifeq ($(FEATURE_GUI),1)
26cc32a Makefiles and configure: make cairo+gtk the default.
pad authored Sep 23, 2010
72 GUIDIR=external/ocamlgtk
73 GUICMD= $(MAKE) all -C $(GUIDIR) && $(MAKE) gui -C commons
74 GUICMDOPT= $(MAKE) opt -C $(GUIDIR) && $(MAKE) gui.opt -C commons;
75 GTKINCLUDE=external/ocamlgtk/src
76 endif
77
78 # cf also below for target pfff_visual
79 ifeq ($(FEATURE_VISUAL),1)
80 CAIRODIR=external/ocamlcairo
81 CAIROINCLUDE=external/ocamlcairo/src
8634b74 initial import into fresh git repo.
pad authored Sep 23, 2010
82 endif
83
84 ifeq ($(FEATURE_BACKTRACE), 1)
85 BTCMD= $(MAKE) backtrace -C commons
86 BTCMDOPT= $(MAKE) backtrace.opt -C commons
87 BTCMA=commons/commons_backtrace.cma
88 else
89 endif
90
91 ifeq ($(FEATURE_PCRE), 1)
92 REGEXPDIR=external/ocamlpcre
93 REGEXPCMD= $(MAKE) -C $(REGEXPDIR) && $(MAKE) regexp -C commons
94 REGEXPCMDOPT= $(MAKE) -C $(REGEXPDIR) && $(MAKE) regexp.opt -C commons
95 REGEXPCMA=external/ocamlpcre/lib/pcre.cma commons/commons_regexp.cma
26cc32a Makefiles and configure: make cairo+gtk the default.
pad authored Sep 23, 2010
96 PCREINCLUDE=external/ocamlpcre/lib
8634b74 initial import into fresh git repo.
pad authored Sep 23, 2010
97 else
98 endif
99
100 ifeq ($(FEATURE_MPI),1)
101 MPIDIR=external/ocamlmpi
102 MPICMD= $(MAKE) all -C $(MPIDIR) && $(MAKE) distribution -C commons
103 MPICMDOPT= $(MAKE) all.opt -C $(MPIDIR) && $(MAKE) distribution.opt -C commons
104 MPICMA=external/ocamlmpi/mpi.cma commons/commons_mpi.cma
105 endif
106
107 #------------------------------------------------------------------------------
108
109 # should be FEATURE_OCAMLGRAPH, or should give dependencies between features
110 GRAPHCMA=external/ocamlgraph/ocamlgraph.cma commons/commons_graph.cma
111 GRAPHDIR=external/ocamlgraph
112 GRAPHCMD= $(MAKE) all -C $(GRAPHDIR) && $(MAKE) graph -C commons
113 GRAPHCMDOPT= $(MAKE) all.opt -C $(GRAPHDIR) && $(MAKE) graph.opt -C commons
3d099fe removed some dependencies to ocamlbdb
pad authored Sep 25, 2010
114
2d8dff7 Makefile: compiling ocamlthrift
pad authored Oct 2, 2010
115 # for the moment it's used only by facebook/ code so could move in
116 # facebook/external/
117 THRIFTDIR=external/ocamlthrift
8634b74 initial import into fresh git repo.
pad authored Sep 23, 2010
118
119 ifeq ($(FEATURE_GRAPHICS), 1)
120 #GRAPHICSCMXA=graphics.cmxa
121 endif
122
26cc32a Makefiles and configure: make cairo+gtk the default.
pad authored Sep 23, 2010
123 ifeq ($(FEATURE_VISUAL),1)
124 VISUALDIR=visual
125 endif
8634b74 initial import into fresh git repo.
pad authored Sep 23, 2010
126
2f1bfad misc
pad authored Sep 27, 2010
127 ifeq ($(FEATURE_FACEBOOK),1)
128 FACEBOOKDIR=facebook
129 endif
130
8634b74 initial import into fresh git repo.
pad authored Sep 23, 2010
131 #------------------------------------------------------------------------------
132 # Main variables
133 #------------------------------------------------------------------------------
134 SYSLIBS=nums.cma bigarray.cma str.cma unix.cma
135
136 # used for sgrep and other small utilities which I dont want to depend
3d099fe removed some dependencies to ocamlbdb
pad authored Sep 25, 2010
137 # on too much things
8634b74 initial import into fresh git repo.
pad authored Sep 23, 2010
138 BASICLIBS=commons/commons.cma \
139 globals/globals.cma \
140 h_program-lang/lib.cma \
141 lang_ml/parsing/lib.cma \
ca330f9 Makefiles: adding lang_nw/
pad authored Sep 25, 2010
142 lang_nw/parsing/lib.cma \
8634b74 initial import into fresh git repo.
pad authored Sep 23, 2010
143 lang_php/parsing/lib.cma \
144 lang_js/parsing/lib.cma \
145 lang_cpp/parsing/lib.cma \
146 lang_php/matcher/lib.cma \
9919d5b adding lang_java/ to help visualize java code
pad authored Sep 26, 2010
147 lang_java/parsing/lib.cma \
8634b74 initial import into fresh git repo.
pad authored Sep 23, 2010
148
149 BASICSYSLIBS=nums.cma bigarray.cma str.cma unix.cma
150
151 LIBS= commons/commons.cma \
152 $(BTCMA) \
153 $(BDBCMA) \
154 $(REGEXPCMA) \
155 $(MPICMA) \
156 $(GRAPHCMA) \
157 commons/commons_features.cma \
158 h_version-control/lib.cma \
159 h_visualization/lib.cma \
160 h_program-lang/lib.cma \
161 h_program-visual/lib.cma \
162 globals/globals.cma \
163 lang_ml/parsing/lib.cma \
164 lang_ml/analyze/lib.cma \
ca330f9 Makefiles: adding lang_nw/
pad authored Sep 26, 2010
165 lang_nw/parsing/lib.cma \
166 lang_nw/analyze/lib.cma \
270df00 skeleton for lang_lisp/
pad authored Oct 21, 2010
167 lang_lisp/parsing/lib.cma \
168 lang_lisp/analyze/lib.cma \
8634b74 initial import into fresh git repo.
pad authored Sep 23, 2010
169 lang_php/parsing/lib.cma \
170 lang_php/analyze/basic/lib.cma \
171 lang_php/analyze/foundation/lib.cma \
172 lang_php/analyze/typing/lib.cma \
173 lang_php/analyze/tools/lib.cma \
174 lang_php/analyze/annotaters/lib.cma \
175 lang_php/analyze/checker/lib.cma \
176 lang_php/mini/lib.cma \
177 lang_php/matcher/lib.cma \
3d099fe removed some dependencies to ocamlbdb
pad authored Sep 25, 2010
178 lang_php/analyze/database/lib.cma \
179 lang_php/analyze/finder/lib.cma \
180 lang_php/analyze/static_analysis/lib.cma \
181 lang_php/analyze/qa_test/lib.cma \
685c004 putting back support for persistent berkeley DB
pad authored Oct 3, 2010
182 lang_php/analyze/lib.cma \
8634b74 initial import into fresh git repo.
pad authored Sep 23, 2010
183 lang_sql/parsing/lib.cma \
184 lang_js/parsing/lib.cma \
185 lang_js/analyze/lib.cma \
186 lang_cpp/parsing/lib.cma \
187 lang_cpp/analyze/lib.cma \
9919d5b adding lang_java/ to help visualize java code
pad authored Sep 26, 2010
188 lang_java/parsing/lib.cma \
189 lang_java/analyze/lib.cma \
8634b74 initial import into fresh git repo.
pad authored Sep 23, 2010
190
191 MAKESUBDIRS=commons \
192 $(BDBDIR) $(REGEXPDIR) $(MPIDIR) \
193 $(GRAPHDIR) \
2d8dff7 Makefile: compiling ocamlthrift
pad authored Oct 3, 2010
194 $(THRIFTDIR) \
26cc32a Makefiles and configure: make cairo+gtk the default.
pad authored Sep 23, 2010
195 $(GUIDIR) $(CAIRODIR) \
8634b74 initial import into fresh git repo.
pad authored Sep 23, 2010
196 h_version-control \
197 h_visualization \
198 h_program-lang \
199 h_program-visual \
200 globals \
201 lang_ml/parsing \
202 lang_ml/analyze \
ca330f9 Makefiles: adding lang_nw/
pad authored Sep 26, 2010
203 lang_nw/parsing \
204 lang_nw/analyze \
270df00 skeleton for lang_lisp/
pad authored Oct 21, 2010
205 lang_lisp/parsing \
206 lang_lisp/analyze \
8634b74 initial import into fresh git repo.
pad authored Sep 23, 2010
207 lang_php/parsing \
208 lang_php/mini \
209 lang_php/matcher \
210 lang_sql/parsing \
211 lang_js/parsing \
212 lang_js/analyze \
213 lang_cpp/parsing \
214 lang_cpp/analyze \
9919d5b adding lang_java/ to help visualize java code
pad authored Sep 26, 2010
215 lang_java/parsing \
216 lang_java/analyze \
8634b74 initial import into fresh git repo.
pad authored Sep 23, 2010
217 lang_php/analyze \
218 lang_php/analyze/basic \
219 lang_php/analyze/foundation \
5f353d3 Skeleton for type inference of PHP via the PIL
pad authored Oct 14, 2010
220 lang_php/analyze/typing \
8634b74 initial import into fresh git repo.
pad authored Sep 23, 2010
221 lang_php/analyze/checker \
3d099fe removed some dependencies to ocamlbdb
pad authored Sep 25, 2010
222 lang_php/analyze/database \
223 lang_php/analyze/static_analysis \
8634b74 initial import into fresh git repo.
pad authored Sep 23, 2010
224 $(VISUALDIR) \
2f1bfad misc
pad authored Sep 27, 2010
225 $(FACEBOOKDIR)
8634b74 initial import into fresh git repo.
pad authored Sep 23, 2010
226
227 INCLUDEDIRS=$(MAKESUBDIRS) \
228 commons/ocamlextra commons/lib-json commons/lib-xml \
26cc32a Makefiles and configure: make cairo+gtk the default.
pad authored Sep 23, 2010
229 $(GTKINCLUDE) $(CAIROINCLUDE) $(PCREINCLUDE)
8634b74 initial import into fresh git repo.
pad authored Sep 23, 2010
230
231 ##############################################################################
232 # Generic
233 ##############################################################################
234 -include $(TOP)/Makefile.common
235
236 ##############################################################################
237 # Top rules
238 ##############################################################################
239
240 .PHONY:: all all.opt opt top clean distclean
241
242 #note: old: was before all: rec $(EXEC) ... but can not do that cos make -j20
243 #could try to compile $(EXEC) before rec. So here force sequentiality.
244
245 all:: Makefile.config
246 $(MAKE) rec
247 $(MAKE) $(PROGS)
248 opt:
249 $(MAKE) rec.opt
250 $(MAKE) $(OPTPROGS)
251 all.opt: opt
252 top: $(TARGET).top
253
254 rec:
255 $(MAKE) -C commons
256 $(BTCMD)
257 $(BDBCMD)
258 $(REGEXPCMD)
259 $(MPICMD)
260 $(GRAPHCMD)
261 $(GUICMD)
262 $(MAKE) features -C commons
263 set -e; for i in $(MAKESUBDIRS); do $(MAKE) -C $$i all || exit 1; done
264
265 rec.opt:
266 $(MAKE) all.opt -C commons
267 $(BTCMDOPT)
268 $(BDBCMDOPT)
269 $(REGEXPCMDOPT)
270 $(MPICMDOPT)
271 $(GRAPHCMDOPT)
272 $(GUICMDOPT)
273 $(MAKE) features.opt -C commons
274 set -e; for i in $(MAKESUBDIRS); do $(MAKE) -C $$i all.opt || exit 1; done
275
276
277 $(TARGET): $(LIBS) $(OBJS)
278 $(OCAMLC) $(BYTECODE_STATIC) -o $@ $(SYSLIBS) $^
279
280 $(TARGET).opt: $(LIBS:.cma=.cmxa) $(OPTOBJS)
281 $(OCAMLOPT) $(STATIC) -o $@ $(SYSLIBS:.cma=.cmxa) $^
282
283
284 $(TARGET).top: $(LIBS) $(OBJS)
285 $(OCAMLMKTOP) -o $@ $(SYSLIBS) threads.cma $^
286
287
288
289
290 clean::
291 rm -f $(TARGET)
292 clean::
293 rm -f $(TARGET).top
294 clean::
295 set -e; for i in $(MAKESUBDIRS); do $(MAKE) -C $$i clean; done
296
297 clean::
298 rm -f *.opt
299
300 depend::
301 set -e; for i in $(MAKESUBDIRS); do $(MAKE) -C $$i depend; done
302
303 Makefile.config:
304 @echo "Makefile.config is missing. Have you run ./configure?"
305 @exit 1
306
307
308 distclean:: clean
309 set -e; for i in $(MAKESUBDIRS); do $(MAKE) -C $$i $@; done
310 rm -f .depend
311 rm -f Makefile.config
312 rm -f globals/config.ml
313 rm -f TAGS
314 # find -name ".#*1.*" | xargs rm -f
315
316 # add -custom so dont need add e.g. ocamlbdb/ in LD_LIBRARY_PATH
317 CUSTOM=-custom
318
319 static:
320 rm -f $(EXEC).opt $(EXEC)
321 $(MAKE) STATIC="-ccopt -static" $(EXEC).opt
322 cp $(EXEC).opt $(EXEC)
323
324 purebytecode:
325 rm -f $(EXEC).opt $(EXEC)
326 $(MAKE) BYTECODE_STATIC="" $(EXEC)
327
328
329 #------------------------------------------------------------------------------
330 # pfff_tags targets
331 #------------------------------------------------------------------------------
332
333 pfff_tags: $(LIBS) main_tags.cmo
334 $(OCAMLC) $(CUSTOM) -o $@ $(SYSLIBS) $^
335
336 pfff_tags.opt: $(LIBS:.cma=.cmxa) main_tags.cmx
337 $(OCAMLOPT) $(STATIC) -o $@ $(BASICSYSLIBS:.cma=.cmxa) $^
338
339 clean::
340 rm -f pfff_tags
341
342 #------------------------------------------------------------------------------
343 # sgrep targets
344 #------------------------------------------------------------------------------
345
346 sgrep: $(LIBS) main_sgrep.cmo
347 $(OCAMLC) $(CUSTOM) -o $@ $(SYSLIBS) $^
348
349 sgrep.opt: $(BASICLIBS:.cma=.cmxa) main_sgrep.cmx
350 $(OCAMLOPT) $(STATIC) -o $@ $(BASICSYSLIBS:.cma=.cmxa) $^
351
352 clean::
353 rm -f sgrep
354
355 #------------------------------------------------------------------------------
356 # spatch targets
357 #------------------------------------------------------------------------------
358
359 spatch: $(LIBS) main_spatch.cmo
360 $(OCAMLC) $(CUSTOM) -o $@ $(SYSLIBS) $^
361
362 spatch.opt: $(LIBS:.cma=.cmxa) main_spatch.cmx
363 $(OCAMLOPT) $(STATIC) -o $@ $(SYSLIBS:.cma=.cmxa) $^
364
365 clean::
366 rm -f spatch
367
368 #------------------------------------------------------------------------------
369 # scheck targets
370 #------------------------------------------------------------------------------
371
372 scheck: $(LIBS) main_scheck.cmo
373 $(OCAMLC) $(CUSTOM) -o $@ $(SYSLIBS) $^
374
375 scheck.opt: $(LIBS:.cma=.cmxa) main_scheck.cmx
376 $(OCAMLOPT) $(STATIC) -o $@ $(SYSLIBS:.cma=.cmxa) $^
377
378 clean::
379 rm -f scheck
380
381 #------------------------------------------------------------------------------
382 # ppp targets
383 #------------------------------------------------------------------------------
384
385 ppp: $(LIBS) main_ppp.cmo
386 $(OCAMLC) $(CUSTOM) -o $@ $(SYSLIBS) $^
387
388 ppp.opt: $(LIBS:.cma=.cmxa) main_ppp.cmx
389 $(OCAMLOPT) $(STATIC) -o $@ $(SYSLIBS:.cma=.cmxa) $^
390
391 clean::
392 rm -f ppp
393
394 #------------------------------------------------------------------------------
395 # pfff_db targets
396 #------------------------------------------------------------------------------
397
398 pfff_db: $(LIBS) main_db.cmo
399 $(OCAMLC) $(CUSTOM) -o $@ $(SYSLIBS) $^
400
401 pfff_db.opt: $(LIBS:.cma=.cmxa) $(LIBS2:.cma=.cmxa) $(OBJS2:.cmo=.cmx) main_db.cmx
402 $(OCAMLOPT) $(STATIC) -o $@ $(SYSLIBS:.cma=.cmxa) $^
403
404 clean::
405 rm -f pfff_db
406
407 #------------------------------------------------------------------------------
408 # pfff_db_light targets
409 #------------------------------------------------------------------------------
410
411 pfff_db_light: $(LIBS) main_db_light.cmo
412 $(OCAMLC) $(CUSTOM) -o $@ $(SYSLIBS) $^
413
414 pfff_db_light.opt: $(LIBS:.cma=.cmxa) $(LIBS2:.cma=.cmxa) $(OBJS2:.cmo=.cmx) main_db_light.cmx
415 $(OCAMLOPT) $(STATIC) -o $@ $(SYSLIBS:.cma=.cmxa) $^
416
417 clean::
418 rm -f pfff_db_light
419
420 #------------------------------------------------------------------------------
421 # pfff_browser target
422 #------------------------------------------------------------------------------
423 SYSLIBS2=external/ocamlgtk/src/lablgtk.cma
424 LIBS2=commons/commons_gui.cma gui/gui.cma
425 OBJS2=
426
427 #need linker to find dlllabltk2.so so need adjust LD_LIBRARY_PATH if
428 # use ocamlgtk/src instead of the standard -I +lablgtk2
429 # cf env.sh
430
431 pfff_browser: $(LIBS) $(LIBS2) $(OBJS2) main_gui.cmo
432 $(OCAMLC) $(CUSTOM) -o $@ $(SYSLIBS) $(SYSLIBS2) $^
433
434 pfff_browser.opt: $(LIBS:.cma=.cmxa) $(LIBS2:.cma=.cmxa) $(OBJS2:.cmo=.cmx) main_gui.cmx
435 $(OCAMLOPT) $(STATIC) -o $@ $(SYSLIBS:.cma=.cmxa) $(SYSLIBS2:.cma=.cmxa) $^
436
437 clean::
438 rm -f pfff_browser
439
440 #------------------------------------------------------------------------------
441 # pfff_visual target
442 #------------------------------------------------------------------------------
443 SYSLIBS3= \
444 external/ocamlgtk/src/lablgtk.cma \
445 external/ocamlcairo/src/cairo.cma \
446 external/ocamlcairo/src/cairo_lablgtk.cma \
447
448 OBJS3=visual/lib.cma
449
450 GTKLOOP=gtkThread.cmo gtkInit.cmo
451
452 pfff_visual: $(LIBS) commons/commons_gui.cma $(OBJS3) main_visual.cmo
453 $(OCAMLC) -thread $(CUSTOM) -o $@ $(SYSLIBS) threads.cma $(SYSLIBS3) $(GTKLOOP) $^
454
455 pfff_visual.opt: $(LIBS:.cma=.cmxa) commons/commons_gui.cmxa $(OBJS3:.cma=.cmxa) main_visual.cmx
456 $(OCAMLOPT) -thread $(STATIC) -o $@ $(SYSLIBS:.cma=.cmxa) threads.cmxa $(SYSLIBS3:.cma=.cmxa) $(GTKLOOP:.cmo=.cmx) $^
457
458 clean::
459 rm -f pfff_visual
460
461
462 #------------------------------------------------------------------------------
463 # pfff_misc targets
464 #------------------------------------------------------------------------------
465 pfff_misc: $(LIBS) main_misc.cmo
466 $(OCAMLC) $(CUSTOM) -o $@ $(SYSLIBS) $(SYSLIBS4) $^
467
468 pfff_misc.opt: $(LIBS:.cma=.cmxa) main_misc.cmx
469 $(OCAMLOPT) $(STATIC) -o $@ $(SYSLIBS:.cma=.cmxa) $(SYSLIBS4:.cma=.cmxa) $^
470
471 clean::
472 rm -f pfff_misc
473
474
475 ##############################################################################
476 # Build documentation
477 ##############################################################################
478 .PHONY:: docs
479
480 ##############################################################################
481 # Install
482 ##############################################################################
483
484 VERSION=$(shell cat globals/config.ml.in |grep version |perl -p -e 's/.*"(.*)".*/$$1/;')
485
486 # note: don't remove DESTDIR, it can be set by package build system like ebuild
487 install: all
488 mkdir -p $(DESTDIR)$(SHAREDIR)
489 cp -a config/ $(DESTDIR)$(SHAREDIR)
490 @echo ""
491 @echo "You can also install XXX by copying the program XXX"
492 @echo "(available in this directory) anywhere you want and"
493 @echo "give it the right options to find its configuration files."
494
495 uninstall:
496 rm -rf $(DESTDIR)$(SHAREDIR)/config/
497
498 version:
499 @echo $(VERSION)
500
501
502 ##############################################################################
503 # Package rules
504 ##############################################################################
505
506 PACKAGE=$(TARGET)-$(VERSION)
507 TMP=/tmp
508
509
510 package:
511 make srctar
512
513 srctar:
514 make clean
515 cp -a . $(TMP)/$(PACKAGE)
516 cd $(TMP); tar cvfz $(PACKAGE).tgz --exclude=CVS --exclude=_darcs $(PACKAGE)
517 rm -rf $(TMP)/$(PACKAGE)
518
519 ##############################################################################
520 # Website rules
521 ##############################################################################
522
523 WEBSITE=/home/pad/mobile/homepage/software/project-pfff
524
525 gen-html:
526 emacs -l ~/.emacs --eval "(progn (htmlize-many-files '(\"changes.txt\")) (kill-emacs))"
527
528 website:
529 cp $(TMP)/$(PACKAGE).tgz $(WEBSITE)
530
531 # make gen-html
532 # cp changes.txt.html $(WEBSITE)/changes-$(VERSION).html
533
534 ##############################################################################
535 # Developer rules
536 ##############################################################################
537
538 .PHONY:: tags visual db
539
540 tags:
541 ./pfff_tags -verbose -lang ml .
542 db:
543 ./pfff_db_light -verbose -lang ml -o DB_LIGHT .
544
545 visual:
546 ./pfff_visual -profile -ss 2 \
053d8ce visual: adding a -ocaml_filter
pad authored Oct 3, 2010
547 -with_info DB_LIGHT -ocaml_filter .
8634b74 initial import into fresh git repo.
pad authored Sep 23, 2010
548 visualopt:
549 ./pfff_visual.opt -profile -ss 2 \
550 -with_info DB_LIGHT .
551
552
553 visual_test: pfff_visual
554 ./pfff_visual -verbose -profile -ss 1 -ft 1. \
555 -with_info DB_LIGHT -filter 'pad:ml' commons/
556
557 visualhead:
558 ./pfff_visual -ss 1 -ft 0.5 -commitid HEAD
559
560 #VCS related
561 #test related
562 #refactoring:
563 # git grep -l Source_high | xargs perl -p -i -e 's/Source_highlight/Highlight_code/g'
564
8a3b7bf misc
pad authored Sep 23, 2010
565 push:
566 git push origin master
567
452072b misc
pad authored Sep 27, 2010
568 pull:
569 git pull
570 cd facebook; git pull
8a3b7bf misc
pad authored Sep 23, 2010
571
8634b74 initial import into fresh git repo.
pad authored Sep 23, 2010
572 ##############################################################################
573 # Pad specific rules
574 ##############################################################################
575
576 DARCSFORESTS=commons commons/lib-sexp \
577 ocamltarzan ocamltarzan/lib-sexp \
578 h_version-control h_program-lang \
579 lang_php/parsing \
580 lang_php/analyze \
581 gui \
582 facebook
583
584 update_darcs:
585 darcs pull
586 set -e; for i in $(DARCSFORESTS); do cd $$i; darcs pull; cd ..; done
587
588 diff_darcs:
589 @echo "----- REPO:" top "----------------------"
590 darcs diff -u
591 set -e; for i in $(DARCSFORESTS); do cd $$i; echo "----- REPO:" $$i "-----------------"; darcs diff -u; cd $(TOP); done
Something went wrong with that request. Please try again.