Browse Source

Sticking the prime downloading script into the `all` target

Michele Orrù 10 years ago
parent
commit
52d4cb62aa
2 changed files with 9 additions and 2 deletions
  1. 4 0
      Makefile.am
  2. 5 2
      Makefile.in

+ 4 - 0
Makefile.am

@@ -3,3 +3,7 @@ SUBDIRS = src/ book/
 AUTOMAKE_ARGS = --add-missing
 
 dist_doc_DATA = README
+
+
+all-local:
+	test -f primes.txt || ./src/apps/primes.sh

+ 5 - 2
Makefile.in

@@ -682,7 +682,7 @@ distcleancheck: distclean
 	       exit 1; } >&2
 check-am: all-am
 check: check-recursive
-all-am: Makefile $(DATA)
+all-am: Makefile $(DATA) all-local
 installdirs: installdirs-recursive
 installdirs-am:
 	for dir in "$(DESTDIR)$(docdir)"; do \
@@ -789,7 +789,7 @@ uninstall-am: uninstall-dist_docDATA
 
 .MAKE: $(am__recursive_targets) install-am install-strip
 
-.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
+.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am all-local \
 	am--refresh check check-am clean clean-cscope clean-generic \
 	cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
 	dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
@@ -806,6 +806,9 @@ uninstall-am: uninstall-dist_docDATA
 	tags-am uninstall uninstall-am uninstall-dist_docDATA
 
 
+all-local:
+	test -f primes.txt || ./src/apps/primes.sh
+
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT: