~steef/snixembed

ref: 0.1.0 snixembed/makefile -rw-r--r-- 631 bytes
bd0e06f2Steef Hegeman updated readme, makefile 1 year, 3 months ago
                                                                                
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
PKG = gtk+-3.0 gio-2.0
SRC = src/*.vala version.vala

PREFIX ?= /usr
BINDIR ?= /bin

PKG := $(foreach pkg, $(PKG), --pkg $(pkg))

snixembed: $(SRC)
	valac -o $@ $(VFLAGS) $(PKG) $(SRC)

version.vala: .git/HEAD .git/index
	echo "const string VERSION = \"$(shell git describe --always --tags --dirty)\";" > $@

doc: $(SRC)
	valadoc --force -o $@ --internal --private --package-name snixembed $(SRC) $(PKG)

clean:
	rm -rf src/*.c version.vala snixembed doc

install: snixembed
	install -Dm755 snixembed $(DESTDIR)$(PREFIX)$(BINDIR)/snixembed

uninstall:
	rm -f $(DESTDIR)$(PREFIX)$(BINDIR)/snixembed

.PHONY: clean install uninstall