From 97c5e0d03d44b99e3463362e59f0bdb7ab091857 Mon Sep 17 00:00:00 2001 From: Seppe Stas Date: Sun, 28 Oct 2018 14:55:04 +0100 Subject: [PATCH] Add make target to download and extract ephemerides files --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 5b01636..b04b15c 100644 --- a/Makefile +++ b/Makefile @@ -18,3 +18,9 @@ time: gps-sdr-sim time ./gps-sdr-sim -e brdc3540.14n -u circle.csv -b 1 time ./gps-sdr-sim -e brdc3540.14n -u circle.csv -b 8 time ./gps-sdr-sim -e brdc3540.14n -u circle.csv -b 16 + +YEAR?=$(shell date +"%Y") +Y=$(patsubst 20%,%,$(YEAR)) +%.$(Y)n: + wget -q ftp://cddis.gsfc.nasa.gov/gnss/data/daily/$(YEAR)/brdc/$@.Z -O $@.Z + uncompress $@.Z