summaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: d1802a6b91f62e75c7b6a46be938918daebd448d (plain)
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

installconf:
	@for app in $(SUBDIRS); do $(MAKE) -C $$app installconf; done

SUBDIRS = ax25 hdlcutil kiss 6pack netrom rose tcpip user_call yamdrv dmascc

EXTRA_DIST = pathnames.h scm-version.h.in ax25-tools.spec

AM_CPPFLAGS = -D_GNU_SOURCE \
	      -DAX25_SYSCONFDIR=\""$(sysconfdir)/ax25/"\" \
	      -DAX25_LOCALSTATEDIR=\""$(localstatedir)/ax25/"\"

AX25_SYSCONFDIR=@sysconfdir@/ax25/
AX25_LOCALSTATEDIR=@localstatedir@/ax25/

BUILT_SOURCES = scm-version.h
dist_noinst_SCRIPTS = setlocalversion

.PHONY:	scm-version.h
scm-version.h:
	sed -e 's/@RELEASE_VER@/@VERSION@/'				\
	    -e 's/@SCM_VER@/'$$(./setlocalversion)'/'			\
	    scm-version.h.in > scm-version.h.tmp &&			\
	(cmp -s scm-version.h.tmp scm-version.h 2>/dev/zero ||		\
	 mv scm-version.h.tmp scm-version.h)
	rm -f scm-version.h.tmp