From 1e12168ed69c742f8d6f3d77b85b97c4bfc683b0 Mon Sep 17 00:00:00 2001 From: Karl Lehenbauer Date: Mon, 29 Sep 2014 23:44:49 -0500 Subject: [PATCH] Extend makefaup1090 Makefile rules Add install options * 'make all' compile faup1090 * 'make install-faup1090' install faup1090 * 'make install-dump1090' install dump1090 * 'make install-autostart' make dump1090 autostart upon boot * 'make full-install' all of the above Update .gitignore to ignore faup1090 and view1090. --- .gitignore | 4 +++- makefaup1090 | 18 ++++++++++++++++-- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 67495f9..8c7f90d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ *.o dump1090 +faup1090 +view1090 testfiles/*.bin misc frames.js @@ -7,4 +9,4 @@ frames.js *~ *.rej *.orig -untrackedDeveloperSettings.js \ No newline at end of file +untrackedDeveloperSettings.js diff --git a/makefaup1090 b/makefaup1090 index 84f5007..7d47812 100644 --- a/makefaup1090 +++ b/makefaup1090 @@ -23,6 +23,12 @@ CFLAGS+=-Wall -W LIBS=-lpthread -lm CC=gcc +info: + @echo "'make all' compile faup1090" + @echo "'make install-faup1090' install faup1090" + @echo "'make install-dump1090' install dump1090" + @echo "'make install-autostart' make dump1090 autostart upon boot" + @echo "'make full-install' all of the above" all: faup1090 @@ -39,7 +45,15 @@ faup1090: faup1090.o anet.o interactive.o mode_ac.o mode_s.o net_io.o clean: rm -f *.o faup1090 -install: - install $(PROGNAME) $(DUMP1090) $(BINDIR) +install-faup1090: faup1090 + install $(PROGNAME) $(BINDIR) + +install-dump1090: + install $(DUMP1090) $(BINDIR) mkdir -p $(HTMLDIR) cp -R public_html $(SHAREDIR) + +install-autostart: + update-rc.d fadump1090.sh defaults + +full-install: install-faup1090 install-dump1090 install-autostart