WSTester updated to work plus hopefully all the other changes that need to go into...
[jabaws.git] / binaries / src / ViennaRNA / interfaces / Perl / Makefile.am
diff --git a/binaries/src/ViennaRNA/interfaces/Perl/Makefile.am b/binaries/src/ViennaRNA/interfaces/Perl/Makefile.am
new file mode 100644 (file)
index 0000000..5468082
--- /dev/null
@@ -0,0 +1,33 @@
+if WITH_LARGE_PF
+  USE_LARGE_PF = -DLARGE_PF
+else
+  USE_LARGE_PF =
+endif
+
+SOURCES = Makefile.PL RNA.pod
+
+EXTRA_DIST = RNA.pm RNA_wrap.c RNAfold.pl test.pl RNAfold.cgi Makefile.PL
+
+Makefile.perl: Makefile.PL Makefile
+       @PerlCmd@ Makefile.PL PREFIX=$(prefix) LDDLFLAGS="${LDFLAGS} -shared"
+
+# the perl command repairs some errors in the SWIG CVS version
+RNA_wrap.c: ../RNA.i ../tmaps.i
+       swig -perl5 -shadow $(USE_LARGE_PF) -I../ RNA.i
+
+all-local: RNA_wrap.c Makefile.perl
+       $(MAKE) -f Makefile.perl
+
+install-exec-local: all-local
+       $(MAKE) -f Makefile.perl install
+
+check-local: all-local
+       $(MAKE) -f Makefile.perl test
+
+mostlyclean-local: Makefile.perl
+       $(MAKE) -f Makefile.perl clean
+
+# remove all generated content
+maintainer-clean-local:
+       -rm -f RNA_wrap.c Makefile.perl.old RNA.pm
+