forked from setarcos/ch341prog
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (24 loc) · 744 Bytes
/
Makefile
File metadata and controls
29 lines (24 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
PKG=ch341prog
prefix = /usr/local
bindir = $(prefix)/bin
sharedir = $(prefix)/share
mandir = $(sharedir)/man
man1dir = $(mandir)/man1
CFLAGS=-std=gnu99 -Wall
$(PKG): main.c ch341a.c ch341a.h
gcc $(CFLAGS) ch341a.c main.c -o $(PKG) -lusb-1.0
clean:
rm *.o $(PKG) -f
install-udev-rule:
cp 99-ch341a-prog.rules /etc/udev/rules.d/
udevadm control --reload-rules
.PHONY: clean install-udev-rule
install: $(PKG)
install $(PKG) $(DESTDIR)$(bindir)
install -m 0664 99-ch341a-prog.rules $(DESTDIR)/etc/udev/rules.d/99-ch341a-prog.rules
debian/changelog:
#gbp dch --debian-tag='%(version)s' -S -a --ignore-branch -N '$(VERSION)'
dch --create -v 1.0-1 --package $(PKG)
deb:
dpkg-buildpackage -b -us -uc
.PHONY: install debian/changelog deb