blob: 88f808d81c5faa0bae53106298a7fc4f297d555a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
Add 'install-ptest' rule.
Signed-off-by: Mihaela Sendrea <mihaela.sendrea@enea.com>
Upstream-status: Pending
---
diff -uNr a/tests/Makefile.am b/tests/Makefile.am
--- a/tests/Makefile.am 2013-08-19 14:05:23.256292155 +0200
+++ b/tests/Makefile.am 2013-08-19 15:49:16.084543591 +0200
@@ -240,3 +240,14 @@
coverage:
-$(srcdir)/coverage.sh
endif
+
+install-ptest:
+ @$(MKDIR_P) $(DESTDIR)/tests
+ @$(MKDIR_P) $(DESTDIR)/src
+ @install $(builddir)/*$(EXEEXT) $(DESTDIR)/tests
+ @install $(srcdir)/*.sh $(DESTDIR)/tests
+ @install $(builddir)/../src/*$(EXEEXT) $(DESTDIR)/src
+ @cp $(builddir)/../Makefile $(DESTDIR)
+ @sed -i -e 's|^Makefile:|_Makefile:|' $(DESTDIR)/tests/Makefile
+ @sed -i -e 's|$(srcdir)|.|' $(DESTDIR)/tests/Makefile
+
|