File: Makefile.in

package info (click to toggle)
lexbor 2.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 44,484 kB
  • sloc: ansic: 764,896; python: 2,795; perl: 1,735; sh: 101; makefile: 71; cpp: 44
file content (40 lines) | stat: -rw-r--r-- 1,187 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
#!/usr/bin/make

RELEASE ?= 1

SRCDIR = liblexbor-$(VERSION)
CODENAME = $(shell lsb_release -cs)
BUILD_DEPENDS = build-essential debhelper devscripts fakeroot lintian lsb-release xsltproc cmake
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

default:
	@echo "available targets: all build clean"

all: liblexbor modules
	mkdir -p debs/$(CODENAME)
	find debuild/ -maxdepth 1 -type f -name "*.deb" -exec cp {} debs/$(CODENAME)/ \;

debuild/$(SRCDIR)/debian:
	set -e ; \
	mkdir -p debuild/$(SRCDIR)/debian ; \
	cp -pr debian/lexbor/* debuild/$(SRCDIR)/debian/

debuild/liblexbor_$(VERSION).orig.tar.gz: debuild/$(SRCDIR)/debian
	cd ../.. && tar -czf packaging/deb/debuild/$(SRCDIR).tar.gz \
		LICENSE NOTICE version CHANGELOG.md README.md CMakeLists.txt \
		config.cmake feature.cmake source
	mv debuild/$(SRCDIR).tar.gz debuild/liblexbor_$(VERSION).orig.tar.gz
	cd debuild/$(SRCDIR) && tar zxf ../liblexbor_$(VERSION).orig.tar.gz

liblexbor: debuild/liblexbor_$(VERSION).orig.tar.gz
	@echo "===> Building $@ package"
	cd debuild/$(SRCDIR) && debuild -us -uc

modules: %%MODULES_DEPS%%

%%MODULES%%

clean:
	rm -rf debuild debs debian

.PHONY: default all build clean