File: Makefile.am

package info (click to toggle)
madfuload 1.2-4.2
  • links: PTS
  • area: non-free
  • in suites: buster, sid
  • size: 416 kB
  • ctags: 131
  • sloc: sh: 804; ansic: 685; makefile: 36
file content (41 lines) | stat: -rw-r--r-- 1,141 bytes parent folder | download | duplicates (5)
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
30
31
32
33
34
35
36
37
38
39
40
41
## Process this file with automake to generate Makefile.in
AUTOMAKE_OPTIONS = foreign

udevrulesdir = @UDEV_RULES_DIR@
firmwaredir = $(datadir)/usb/maudio

sbin_PROGRAMS = madfuload
madfuload_SOURCES = madfuload.c

udevrules_DATA = 42-madfuload.rules
dist_firmware_DATA = ma003101.bin ma004103.bin ma005101.bin ma006100.bin ma008100.bin

MOSTLYCLEANFILES = 42-madfuload.rules files.list
EXTRA_DIST = 42-madfuload.rules.in LICENSE Changelog $(PACKAGE).spec.in $(PACKAGE).spec

all-local: files.list

42-madfuload.rules: Makefile $(srcdir)/42-madfuload.rules.in
	rm -f $@ $@.tmp
	sed -e 's,@firmwaredir\@,$(firmwaredir),g' \
		-e 's,@sbindir\@,$(sbindir),g' \
		$(srcdir)/42-madfuload.rules.in >$@.tmp
	mv $@.tmp $@

$(PACKAGE).spec: Makefile $(srcdir)/$(PACKAGE).spec.in
	rm -f $@ $@.tmp
	sed -e 's,@version@,$(VERSION),g' \
		$(srcdir)/$(PACKAGE).spec.in > $@.tmp
	mv $@.tmp $@

files.list: Makefile
	rm -f $@
	for i in $(sbin_PROGRAMS); do \
		echo "$(sbindir)/$$i"; \
	done >> $@
	for i in $(udevrules_DATA); do \
		echo "$(udevrulesdir)/$$i"; \
	done >> $@
	for i in $(dist_firmware_DATA); do \
		echo "$(firmwaredir)/$$i"; \
	done >> $@