Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updated Makefile and others.

  • Loading branch information...
commit c2ee9e00662835ade74923c2f8576fd461685d5e 1 parent c5786d6
@agentzh authored
Showing with 82 additions and 71 deletions.
  1. +11 −0 .gitignore
  2. +70 −70 Makefile
  3. +1 −1  t/VRG.pm
View
11 .gitignore
@@ -0,0 +1,11 @@
+*~
+*.swo
+*.swp
+0*.clp
+0*.vrg
+0*.xclp
+knowledge/anti-vectorize.clp
+knowledge/goal-match.clp
+knowledge/vector-eval.clp
+knowledge/vectorize.clp
+lib/VRG/Compiler.pm
View
140 Makefile
@@ -1,70 +1,70 @@
-PERL_BIN := E:/perl/bin
-PERL_LIB := E:/perl/site/lib
-
-sample_vrg_files := $(wildcard sample/*.vrg)
-sample_png_files := $(patsubst %.vrg,%.png,$(sample_vrg_files))
-
-xpro := perl xprolog/xpro.pl
-xclp := xclips -I knowledge -c
-vrg_run := perl -Ilib script/vrg-run.pl
-
-rm_f = perl -MExtUtils::Command -e rm_f
-mv_f = perl -MExtUtils::Command -e mv
-cp_f = perl -MExtUtils::Command -e cp
-
-xpro_files := $(wildcard xprolog/*.xpro)
-pro_files := $(patsubst %.xpro,%.pro, $(xpro_files))
-
-clp_files := $(patsubst %,knowledge/%,vectorize.clp vector-eval.clp \
- anti-vectorize.clp goal-match.clp)
-
-vpath %.xclp knowledge
-vpath %.grammar grammar
-vpath %.pl script xprolog
-
-all: clips_all
-
-clips_all: lib/VRG/Compiler.pm $(clp_files)
-
-prolog_all: $(pro_files)
-
-lib/VRG/Compiler.pm: vrgs.grammar
- perl -s -MParse::RecDescent - -RD_HINT $< VRG::Compiler
- $(mv_f) Compiler.pm $@
-
-%.pro: %.xpro xprolog/xpro.pl
- $(xpro) $<
-
-knowledge/vectorize.clp: preprocess.xclp
-
-%.clp: %.xclp vrg-sugar.xclp
- $(xclp) $<
-
-testprolog: prolog_all
- prove -Ilib xprolog/*.t
-
-testall: prolog_all clips_all
- prove -Ilib t/*.t xprolog/*.t
-
-test: clips_all
- prove -Ilib t/*.t
-
-clean:
- $(rm_f) xprolog/*.pro xprolog/0*.xpro 0*.xclp *.clp *.vrg \
- sample/*.clp sample/*.xclp *.png
- clips-cover -d
-
-veryclean: clean
- $(rm_f) lib/VRG/Compiler.pm \
- knowledge/*.clp
-
-sample: $(sample_png_files)
-
-sample/%.png: sample/%.vrg clips_all
- $(vrg_run) $<
-
-install:
- pl2bat script/xclips.pl script/clips-cover.pl
- $(cp_f) script/xclips.bat $(PERL_BIN)
- $(cp_f) script/clips-cover.bat $(PERL_BIN)
- $(cp_f) lib/VRG/Compiler.pm $(PERL_LIB)/VRG
+PERL_BIN := E:/perl/bin
+PERL_LIB := E:/perl/site/lib
+
+sample_vrg_files := $(wildcard sample/*.vrg)
+sample_png_files := $(patsubst %.vrg,%.png,$(sample_vrg_files))
+
+xpro := perl xprolog/xpro.pl
+xclp := xclips -I knowledge -c
+vrg_run := perl -Ilib script/vrg-run.pl
+
+rm_f = perl -MExtUtils::Command -e rm_f
+mv_f = perl -MExtUtils::Command -e mv
+cp_f = perl -MExtUtils::Command -e cp
+
+xpro_files := $(wildcard xprolog/*.xpro)
+pro_files := $(patsubst %.xpro,%.pro, $(xpro_files))
+
+clp_files := $(patsubst %,knowledge/%,vectorize.clp vector-eval.clp \
+ anti-vectorize.clp goal-match.clp)
+
+vpath %.xclp knowledge
+vpath %.grammar grammar
+vpath %.pl script xprolog
+
+all: clips_all
+
+clips_all: lib/VRG/Compiler.pm $(clp_files)
+
+prolog_all: $(pro_files)
+
+lib/VRG/Compiler.pm: vrgs.grammar
+ perl -s -MParse::RecDescent - -RD_HINT $< VRG::Compiler
+ $(mv_f) Compiler.pm $@
+
+%.pro: %.xpro xprolog/xpro.pl
+ $(xpro) $<
+
+knowledge/vectorize.clp: preprocess.xclp
+
+%.clp: %.xclp vrg-sugar.xclp
+ $(xclp) $<
+
+testprolog: prolog_all
+ prove -I../xclips/lib -Ilib xprolog/*.t
+
+testall: prolog_all clips_all
+ prove -I../xclips/lib -Ilib t/*.t xprolog/*.t
+
+test: clips_all
+ prove -I../xclips/lib -Ilib t/*.t
+
+clean:
+ $(rm_f) xprolog/*.pro xprolog/0*.xpro 0*.xclp *.clp *.vrg \
+ sample/*.clp sample/*.xclp *.png
+ clips-cover -d
+
+veryclean: clean
+ $(rm_f) lib/VRG/Compiler.pm \
+ knowledge/*.clp
+
+sample: $(sample_png_files)
+
+sample/%.png: sample/%.vrg clips_all
+ $(vrg_run) $<
+
+install:
+ pl2bat script/xclips.pl script/clips-cover.pl
+ $(cp_f) script/xclips.bat $(PERL_BIN)
+ $(cp_f) script/clips-cover.bat $(PERL_BIN)
+ $(cp_f) lib/VRG/Compiler.pm $(PERL_LIB)/VRG
View
2  t/VRG.pm
@@ -8,7 +8,7 @@ our @EXPORT = qw(run_tests);
my $count = 0;
-my $xclips = "xclips.bat -c -I knowledge";
+my $xclips = "xclips -c -I knowledge";
#no_diff;
Please sign in to comment.
Something went wrong with that request. Please try again.