File: Makefile

package info (click to toggle)
gobi-loader 0.6-1
  • links: PTS, VCS
  • area: contrib
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, squeeze, stretch, wheezy
  • size: 56 kB
  • ctags: 15
  • sloc: ansic: 211; makefile: 30
file content (26 lines) | stat: -rw-r--r-- 638 bytes parent folder | download
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
VERSION = 0.6

gobi_loader: gobi_loader.c
	gcc -Wall gobi_loader.c -o gobi_loader

all: gobi_loader

install: gobi_loader
	install -D gobi_loader ${prefix}/lib/udev/gobi_loader
	install -D 60-gobi.rules ${prefix}/lib/udev/rules.d/60-gobi.rules
	mkdir -p ${prefix}/lib/firmware
	-udevadm control --reload-rules

uninstall:
	-rm $(prefix)/lib/udev/gobi_loader
	-rm $(prefix)/etc/udev/rules.d/60-gobi.rules

clean:
	-rm gobi_loader
	-rm *~

dist:
	mkdir gobi_loader-$(VERSION)
	cp gobi_loader.c README Makefile 60-gobi.rules gobi_loader-$(VERSION)
	tar zcf gobi_loader-$(VERSION).tar.gz gobi_loader-$(VERSION)
	rm -rf gobi_loader-$(VERSION)