aboutsummaryrefslogtreecommitdiff
path: root/paludis/fetchers/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/fetchers/Makefile.am')
-rw-r--r--paludis/fetchers/Makefile.am37
1 files changed, 37 insertions, 0 deletions
diff --git a/paludis/fetchers/Makefile.am b/paludis/fetchers/Makefile.am
new file mode 100644
index 000000000..37e646344
--- /dev/null
+++ b/paludis/fetchers/Makefile.am
@@ -0,0 +1,37 @@
+MAINTAINERCLEANFILES = Makefile.in
+CLEANFILES = *~ dohttp dohttps doftp .keep
+SUBDIRS = .
+
+.keep :
+ touch $@
+
+libexecprogdir = $(libexecdir)/paludis/fetchers/
+
+libexecprog_SCRIPTS = \
+ dohttp \
+ dohttps \
+ doftp \
+ dofile
+
+TESTS_ENVIRONMENT = env \
+ PALUDIS_EBUILD_DIR="$(srcdir)/ebuild/" \
+ TEST_SCRIPT_DIR="$(srcdir)/" \
+ bash $(top_srcdir)/test/run_test.sh
+
+installuserfetchersdir = $(datadir)/paludis/fetchers
+installuserfetchers_DATA = .keep
+
+TESTS =
+EXTRA_DIST = $(libexecprog_SCRIPTS) dowget.in
+
+check_SCRIPTS =
+check_PROGRAMS = $(TESTS)
+
+AM_CXXFLAGS = -I$(top_srcdir) @PALUDIS_CXXFLAGS@
+
+dohttp dohttps doftp : dowget.in
+ cat $? > $@
+
+built-sources : $(BUILT_SOURCES)
+ for s in `echo $(SUBDIRS) | tr -d .` ; do $(MAKE) -C $$s built-sources || exit 1 ; done
+