forked from sethrh/acdcontrol
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
18 lines (14 loc) · 671 Bytes
/
Makefile
File metadata and controls
18 lines (14 loc) · 671 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
RELEASE_FILES=99-acdcontrol.rules acdcontrol.cpp acdcontrol.init acdcontrol.sysconfig COPYING COPYRIGHT Makefile VERSION
VERSION=$(shell cat VERSION)
VERNAME=acdcontrol-$(VERSION)
DIRNAME=/tmp/$(VERNAME)
acdcontrol: acdcontrol.cpp
99-acdcontrol.rules: acdcontrol
./acdcontrol -l | sed --r -e 's/Vendor= 0x([0-9a-f]*) \(.*\), Product=0x([0-9a-f]*) \[(.*)\]/\# \3\nATTR{idVendor}==\"\1\", ATTR{idProduct}==\"\2\", MODE=\"0666\"/g' > 99-acdcontrol.rules
release:
mkdir -p $(DIRNAME)
rm -rf $(DIRNAME)/*
cp $(RELEASE_FILES) $(DIRNAME)
tar cvfz $(VERNAME).tar.gz -C /tmp $(VERNAME)
upload:
curl -T $(VERNAME).tar.gz ftp://anonymous@upload.sourceforge.net/incoming/