Tell git to ignore generated files.
[hama_mce-eventclient.git] / 3rdparty / Makefile.libusb-1.0
blob2e2780d2afe7512cb7d0793dc53177ead7253b6e
1 PREFIX := $(PWD)
2 PATH := $(PREFIX)/bin:$(PATH)
4 LIBUSB := libusb-1.0.6
5 BASE_URL := http://downloads.sourceforge.net/project/libusb/libusb-1.0/$(LIBUSB)/
7 all : $(LIBUSB).stamp
9 $(LIBUSB).stamp : src/$(LIBUSB)
10         ( cd $< && ./configure --prefix=$(PREFIX) --disable-shared )
11         $(MAKE) -C $< install
12         touch $@
14 src/% : src/%.tar.bz2
15         ( cd src && tar xfj $(notdir $<) )
16         ( cd src && cat ../$(notdir $@)*patch.diff | patch -p0 )
18 src/%.tar.bz2 :
19         ( mkdir -p src && cd src && wget -c $(BASE_URL)/$(notdir $@) )
21 # do not remove implicit & intermediate targets in build: directories and tarballs
22 .SECONDARY :