File: Makefile

package info (click to toggle)
mpdtoys 0.24
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 104 kB
  • ctags: 22
  • sloc: perl: 842; sh: 58; makefile: 21
file content (23 lines) | stat: -rw-r--r-- 685 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
progs=mpstore mprev mpgenplaylists mpfade sats mpskip mptoggle mprand \
      mpinsert vipl mprompt mplength mprandomwalk

PERLLIBDIR=$(shell perl -e 'use Config; print $$Config{installvendorlib}')

build:

install:
	install -d $(DESTDIR)/usr/bin/
	install $(progs) $(DESTDIR)/usr/bin/
	
	install -d $(DESTDIR)/usr/share/man/man1/
	for prog in $(progs); do \
		pod2man -c $$prog $$prog > $(DESTDIR)/usr/share/man/man1/$$prog.1; \
	done
	
	for link in mpload mpcp mpmv mpswap; do \
		ln -sf mpstore $(DESTDIR)/usr/bin/$$link; \
		ln -sf mpstore.1 $(DESTDIR)/usr/share/man/man1/$$link.1; \
	done

	install -d $(DESTDIR)/$(PERLLIBDIR)
	install -m 0644 MpdToys.pm $(DESTDIR)/$(PERLLIBDIR)