X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=Makefile;h=72a979296eb1c94b85b1f9234163b382f96c29e6;hb=d319a25de291b75b6bb76463bdc1aa1c851182d8;hp=06c8ebb1ce8733d3eddc711cdc52517d47034130;hpb=f55de58e61972dc5510ddde42799e872f27ba198;p=sigrok-firmware-fx2lafw.git diff --git a/Makefile b/Makefile index 06c8ebb1..72a97929 100644 --- a/Makefile +++ b/Makefile @@ -18,21 +18,59 @@ ## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ## -all: saleae-logic cwav-usbeeax cwav-usbeesx +# sigrok-firmware-fx2lafw package/tarball version number. +VERSION = "0.1.0" + +DESTDIR ?= /usr/local/share/sigrok-firmware + +REPO = git://sigrok.git.sourceforge.net/gitroot/sigrok/fx2lafw + +TARBALLDIR = sigrok-firmware-fx2lafw-$(VERSION) + +all: build-all + +build-all: saleae-logic cwav-usbeeax cwav-usbeesx cypress-fx2 braintechnology-usb-lps saleae-logic: - $(MAKE) -C hw/saleae-logic + @$(MAKE) -C hw/saleae-logic cwav-usbeeax: - $(MAKE) -C hw/cwav-usbeeax + @$(MAKE) -C hw/cwav-usbeeax cwav-usbeesx: - $(MAKE) -C hw/cwav-usbeesx + @$(MAKE) -C hw/cwav-usbeesx + +cypress-fx2: + @$(MAKE) -C hw/cypress-fx2 + +braintechnology-usb-lps: + @$(MAKE) -C hw/braintechnology-usb-lps + +ChangeLog: + @git log > ChangeLog || touch ChangeLog + +dist: + @git clone $(REPO) $(TARBALLDIR) + @cd $(TARBALLDIR) && $(MAKE) ChangeLog && cd .. + @rm -rf $(TARBALLDIR)/.git + @tar -c -z -f $(TARBALLDIR).tar.gz $(TARBALLDIR) + @rm -rf $(TARBALLDIR) + +install: build-all + @mkdir -p $(DESTDIR) + @cp hw/saleae-logic/build/*.fw $(DESTDIR) + @cp hw/cwav-usbeeax/build/*.fw $(DESTDIR) + @cp hw/cwav-usbeesx/build/*.fw $(DESTDIR) + @cp hw/cypress-fx2/build/*.fw $(DESTDIR) + @cp hw/braintechnology-usb-lps/build/*.fw $(DESTDIR) clean: - rm -rf hw/saleae-logic/build - rm -rf hw/cwav-usbeeax/build - rm -rf hw/cwav-usbeesx/build + @rm -rf hw/saleae-logic/build + @rm -rf hw/cwav-usbeeax/build + @rm -rf hw/cwav-usbeesx/build + @rm -rf hw/cypress-fx2/build + @rm -rf hw/braintechnology-usb-lps/build + @$(MAKE) -C fx2lib clean -.PHONY: saleae-logic cwav-usbeeax cwav-usbeesx +.PHONY: saleae-logic cwav-usbeeax cwav-usbeesx cypress-fx2 braintechnology-usb-lps