Skip to content

Commit

Permalink
Add firmware loader for the GIMX adapter #457
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Laurendeau committed Jun 13, 2017
1 parent 7e0fb57 commit 7a5fe93
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions loader/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ include ../Makedefs
ifneq ($(OS),Windows_NT)
prefix=$(DESTDIR)/usr
bindir=$(prefix)/bin
fwdir=$(prefix)/share/gimx/firmware
sharedir=$(prefix)/share
endif

NAME=$(shell basename $(shell pwd))
Expand Down Expand Up @@ -31,12 +31,14 @@ install: all
mkdir -p $(prefix)
mkdir -p $(bindir)
for i in $(BINS); do cp $$i $(bindir)/; done
mkdir -p $(fwdir)
for i in firmware/*; do cp $$i $(fwdir); done
mkdir -p $(sharedir)/gimx/firmware
for i in firmware/*; do cp $$i $(sharedir)/gimx/firmware; done

uninstall:
-$(RM) $(fwdir)/*
-rmdir $(fwdir)
-$(RM) $(sharedir)/gimx/firmware/*
-rmdir $(sharedir)/gimx/firmware
-rmdir $(sharedir)/gimx
-rmdir $(sharedir)
-for i in $(BINS); do $(RM) $(bindir)/$$i; done
-rmdir $(bindir)
-rmdir $(prefix)
Expand Down

0 comments on commit 7a5fe93

Please sign in to comment.