File: Makefile

package info (click to toggle)
libvorbisidec 1.2.1%2Bgit20180316-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 872 kB
  • sloc: ansic: 7,783; sh: 143; makefile: 55
file content (25 lines) | stat: -rw-r--r-- 523 bytes parent folder | download | duplicates (7)
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
#!/usr/bin/make

# makefile documenting how to build example code from the
# libvorbisidec ("tremor") library distribution.

# Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>

TARGETS = ivorbisfile_example iseeking_example

all: $(TARGETS)

%: %.c
	gcc -g -o $@ $< -lvorbisidec

clean:
	rm -f $(TARGETS)

# it is OK to unzip gzipped source (dh_installexamples auto-compresses
# larger files in the examples directory)
%.c: %.c.gz
	gzip -d $<
# but save any .c files that get unzipped!
.PRECIOUS: %.c

.PHONY: all clean