File: Makefile

package info (click to toggle)
alsautils 0.0.6-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 248 kB
  • ctags: 259
  • sloc: ansic: 1,769; cpp: 356; sh: 178; makefile: 119
file content (48 lines) | stat: -rw-r--r-- 1,142 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#
# Makefile for ALSA Utilities
# Copyright (c) 1994-98 by Jaroslav Kysela <perex@jcu.cz>
#

ifeq (Makefile.conf,$(wildcard Makefile.conf))
include Makefile.conf
else
dummy:
	@echo
	@echo "Please, run configure script as first..."
	@echo
endif


all:
	$(MAKE) -C aplay
	$(MAKE) -C amixer
	$(MAKE) -C alsamixer
	@echo
	@echo "ALSA Utilities were sucessfully compiled."
	@echo

install: all
	$(INSTALL) -s -m 755 -o root -g root aplay/aplay $(INSTROOT)${bindir}
	ln -sf aplay $(INSTROOT)${bindir}/arecord
	$(INSTALL) -s -m 755 -o root -g root amixer/amixer $(INSTROOT)${bindir}
	$(INSTALL) -s -m 755 -o root -g root alsamixer/alsamixer $(INSTROOT)${bindir}

clean:
	$(MAKE) -C include clean
	$(MAKE) -C aplay clean
	$(MAKE) -C amixer clean
	$(MAKE) -C alsamixer clean
	$(MAKE) -C utils clean
	rm -f core .depend *.o *.orig *~
	rm -f `find . -name "out.txt"`

mrproper: clean
	rm -f config.cache config.log config.status Makefile.conf \
              include/aconfig.h utils/alsa-utils.spec

cvsclean: clean
	rm -f configure

pack: mrproper
	chown -R root.root ../alsa-utils
	tar cvz -C .. -f ../alsa-utils-$(SND_UTIL_VERSION).tar.gz alsa-utils