summaryrefslogtreecommitdiffstats
path: root/perl
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2005-05-17 20:27:43 +0000
committerFrederic Peters <fpeters@entrouvert.com>2005-05-17 20:27:43 +0000
commit6d1e9fa62f2745410b2a20394705747cf0ca7615 (patch)
tree8e6e6343f1f0f80a23fb058b069db1c7235c63aa /perl
parent62e74ab239876656cacd17629e8288783063bd86 (diff)
downloadlasso-6d1e9fa62f2745410b2a20394705747cf0ca7615.tar.gz
lasso-6d1e9fa62f2745410b2a20394705747cf0ca7615.tar.xz
lasso-6d1e9fa62f2745410b2a20394705747cf0ca7615.zip
perl now installs and uninstalls correctly (with thanks to p.g.o)
Diffstat (limited to 'perl')
-rw-r--r--perl/Makefile.am11
1 files changed, 8 insertions, 3 deletions
diff --git a/perl/Makefile.am b/perl/Makefile.am
index a4502325..b5660905 100644
--- a/perl/Makefile.am
+++ b/perl/Makefile.am
@@ -26,7 +26,7 @@ $(PERL_MAKEFILE): lasso.pm
-perl install-perl: $(PERL_MAKEFILE)
target=`echo $@ | sed -e 's/-perl//'`; \
- $(MAKE) -f $(PERL_MAKEFILE) DESTDIR=$(DESTDIR) $$target
+ $(MAKE) -f $(PERL_MAKEFILE) DESTDIR=$(DESTDIR) PREFIX=$(prefix) $$target
test-perl: $(PERL_MAKEFILE)
$(RUN)$(MAKE) -f $(PERL_MAKEFILE) test
@@ -61,6 +61,11 @@ clean-local:
# perl module installation disabled since broken wrt to make distcheck
-install-fakeDATA:
- @true
+install-fakeDATA: install-perl
+
+uninstall-local:
+ find $(DESTDIR)$(prefix) -name lasso -type d | grep perl | xargs rm -rf
+ find $(DESTDIR)$(prefix) -name lasso.pm -exec rm -f {} \;
+ find $(DESTDIR)$(prefix) -name perllocal.pod -exec rm -f {} \;
+ true