Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed Makefile.

  • Loading branch information...
commit 13e39c89f048869b4344b3f29e83dd4ee9a70083 1 parent a646d64
Yichun Zhang authored

Showing 2 changed files with 10 additions and 10 deletions. Show diff stats Hide diff stats

  1. +1 0  .gitignore
  2. +9 10 Makefile
1  .gitignore
@@ -9,3 +9,4 @@ knowledge/goal-match.clp
9 9 knowledge/vector-eval.clp
10 10 knowledge/vectorize.clp
11 11 lib/VRG/Compiler.pm
  12 +doc/*.html
19 Makefile
... ... @@ -1,6 +1,3 @@
1   -PERL_BIN := E:/perl/bin
2   -PERL_LIB := E:/perl/site/lib
3   -
4 1 sample_vrg_files := $(wildcard sample/*.vrg)
5 2 sample_png_files := $(patsubst %.vrg,%.png,$(sample_vrg_files))
6 3
@@ -8,10 +5,6 @@ xpro := perl xprolog/xpro.pl
8 5 xclp := xclips -I knowledge -c
9 6 vrg_run := perl -Ilib script/vrg-run.pl
10 7
11   -rm_f = perl -MExtUtils::Command -e rm_f
12   -mv_f = perl -MExtUtils::Command -e mv
13   -cp_f = perl -MExtUtils::Command -e cp
14   -
15 8 xpro_files := $(wildcard xprolog/*.xpro)
16 9 pro_files := $(patsubst %.xpro,%.pro, $(xpro_files))
17 10
@@ -22,6 +15,8 @@ vpath %.xclp knowledge
22 15 vpath %.grammar grammar
23 16 vpath %.pl script xprolog
24 17
  18 +.PHONY: all clips_all prolog_all clean veryclean doc
  19 +
25 20 all: clips_all
26 21
27 22 clips_all: lib/VRG/Compiler.pm $(clp_files)
@@ -29,8 +24,9 @@ clips_all: lib/VRG/Compiler.pm $(clp_files)
29 24 prolog_all: $(pro_files)
30 25
31 26 lib/VRG/Compiler.pm: vrgs.grammar
  27 + mkdir -p lib/VRG
32 28 perl -s -MParse::RecDescent - -RD_HINT $< VRG::Compiler
33   - $(mv_f) Compiler.pm $@
  29 + mv Compiler.pm $@
34 30
35 31 %.pro: %.xpro xprolog/xpro.pl
36 32 $(xpro) $<
@@ -46,16 +42,19 @@ testprolog: prolog_all
46 42 testall: prolog_all clips_all
47 43 prove -I../xclips/lib -Ilib t/*.t xprolog/*.t
48 44
  45 +doc:
  46 + cd doc && $(MAKE)
  47 +
49 48 test: clips_all
50 49 prove -I../xclips/lib -Ilib t/*.t
51 50
52 51 clean:
53   - $(rm_f) xprolog/*.pro xprolog/0*.xpro 0*.xclp *.clp *.vrg \
  52 + rm -f xprolog/*.pro xprolog/0*.xpro 0*.xclp *.clp *.vrg \
54 53 sample/*.clp sample/*.xclp *.png
55 54 clips-cover -d
56 55
57 56 veryclean: clean
58   - $(rm_f) lib/VRG/Compiler.pm \
  57 + lib/VRG/Compiler.pm \
59 58 knowledge/*.clp
60 59
61 60 sample: $(sample_png_files)

0 comments on commit 13e39c8

Please sign in to comment.
Something went wrong with that request. Please try again.