File: Makefile.am

package info (click to toggle)
knxd 0.14.30-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,644 kB
  • sloc: cpp: 21,518; ansic: 4,859; pascal: 3,728; makefile: 514; sh: 253; ruby: 132; java: 65; python: 40; xml: 15
file content (42 lines) | stat: -rw-r--r-- 971 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
AUTOMAKE_OPTIONS=1.9
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST=SubmittingPatches .gitignore tools/version.sh

CONFIGURE_DEPENDENCIES=debian/changelog
## rebuild when the version changes

BUILDDIRS = 

SUBDIRS=. src systemd
DIST_SUBDIRS    = $(SUBDIRS)

BUILT_SOURCES=path.h version.h
CLEANFILES=path.h version.h

path.h : Makefile
	echo "#define PKGDATADIR \"${pkgdatadir}\"" >$@
	echo "#define PKGLIBDIR \"${pkglibdir}\"" >>$@

.PHONY:	CHECK
version.h: CHECK
	echo "#define REAL_VERSION \"${shell tools/version.sh}\"" >>$@.new
	cmp -s $@.new $@ && rm $@.new || mv $@.new $@
	

.PHONY: help HELP
help HELP:
	@echo ""
	@echo ""
	@echo "in addition to standard targets (all, install, clean, ...)"
	@echo "the following make targets may be supported (at this level):"
	@echo ""
	@echo "    make help    - print this text"
	@echo ""

# update version number
configure: debian/changelog
config.h: configure

test: all
	sh tools/test.sh
	tools/test_inih tools/test.ini tools/bad*.ini