File: Makefile

package info (click to toggle)
turntable 0.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 868 kB
  • sloc: xml: 85; makefile: 29
file content (37 lines) | stat: -rw-r--r-- 881 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
.PHONY: all install uninstall build test potfiles
PREFIX ?= /usr

scrobbling ?= 1
# Remove the devel headerbar style:
# make release=1
release ?=

ifeq ($(scrobbling),0)
    SCROBBLING = -Dscrobbling=false
else
    SCROBBLING = -Dscrobbling=true
endif


all: build

build:
	meson setup builddir --prefix=$(PREFIX)
	meson configure builddir -Ddevel=$(if $(release),false,true) $(SCROBBLING)
	meson compile -C builddir

install:
	meson install -C builddir

uninstall:
	sudo ninja uninstall -C builddir

test:
	ninja test -C builddir

potfiles:
	find ./ -not -path '*/.*' -type f -name "*.in" | sort > po/POTFILES
	echo "" >> po/POTFILES
	find ./ -not -path '*/.*' -type f -name "*.ui" -exec grep -l "translatable=\"yes\"" {} \; | sort >> po/POTFILES
	echo "" >> po/POTFILES
	find ./ -not -path '*/.*' -type f -name "*.vala" -exec grep -l "_(\"\|ngettext" {} \; | sort >> po/POTFILES