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.
This commit is contained in:
Karl Lehenbauer 2014-09-29 23:44:49 -05:00
parent 2be5074721
commit 1e12168ed6
2 changed files with 19 additions and 3 deletions

4
.gitignore vendored
View File

@ -1,5 +1,7 @@
*.o *.o
dump1090 dump1090
faup1090
view1090
testfiles/*.bin testfiles/*.bin
misc misc
frames.js frames.js
@ -7,4 +9,4 @@ frames.js
*~ *~
*.rej *.rej
*.orig *.orig
untrackedDeveloperSettings.js untrackedDeveloperSettings.js

View File

@ -23,6 +23,12 @@ CFLAGS+=-Wall -W
LIBS=-lpthread -lm LIBS=-lpthread -lm
CC=gcc 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 all: faup1090
@ -39,7 +45,15 @@ faup1090: faup1090.o anet.o interactive.o mode_ac.o mode_s.o net_io.o
clean: clean:
rm -f *.o faup1090 rm -f *.o faup1090
install: install-faup1090: faup1090
install $(PROGNAME) $(DUMP1090) $(BINDIR) install $(PROGNAME) $(BINDIR)
install-dump1090:
install $(DUMP1090) $(BINDIR)
mkdir -p $(HTMLDIR) mkdir -p $(HTMLDIR)
cp -R public_html $(SHAREDIR) cp -R public_html $(SHAREDIR)
install-autostart:
update-rc.d fadump1090.sh defaults
full-install: install-faup1090 install-dump1090 install-autostart