File: Makefile.am

package info (click to toggle)
ax25-apps 0.0.8-rc4-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 2,168 kB
  • sloc: sh: 11,124; ansic: 10,264; makefile: 287
file content (60 lines) | stat: -rw-r--r-- 1,867 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60

sbin_PROGRAMS = ax25ipd

man_MANS = ax25ipd.8 ax25ipd.conf.5

EXTRA_DIST = ax25ipd.man ax25ipd.conf.man $(etcfiles) $(doc_DATA)
CLEANFILES = ax25ipd.8 ax25ipd.8.tmp ax25ipd.conf.5 ax25ipd.conf.5.tmp

ax25ipd.8: ax25ipd.man
	name_ax25ipd=$$(echo ax25ipd | sed -e '$(transform)')			\
	name_Ax25ipd=$$(echo $$name_ax25ipd | sed -r 's@^(.)@\U\1\E@') &&		\
	name_AX25IPD=$$(echo $$name_ax25ipd | sed -r 's@^(.*)@\U\1\E@') &&		\
	sed -e "s/@@@ax25ipd@@@/$$name_ax25ipd/g"				\
	    -e "s/@@@Ax25ipd@@@/$$name_Ax25ipd/g"				\
	    -e "s/@@@AX25IPD@@@/$$name_AX25IPD/g"				\
	     $(srcdir)/ax25ipd.man > ax25ipd.8.tmp &&					\
	mv ax25ipd.8.tmp ax25ipd.8;

ax25ipd.conf.5: ax25ipd.conf.man
	name_ax25ipd=$$(echo ax25ipd | sed -e '$(transform)')			\
	name_Ax25ipd=$$(echo $$name_ax25ipd | sed -r 's@^(.)@\U\1\E@') &&		\
	name_AX25IPD=$$(echo $$name_ax25ipd | sed -r 's@^(.*)@\U\1\E@') &&		\
	sed -e "s/@@@ax25ipd@@@/$$name_ax25ipd/g"				\
	    -e "s/@@@Ax25ipd@@@/$$name_Ax25ipd/g"				\
	    -e "s/@@@AX25IPD@@@/$$name_AX25IPD/g"				\
	    $(srcdir)/ax25ipd.conf.man > ax25ipd.conf.5.tmp &&				\
	mv ax25ipd.conf.5.tmp ax25ipd.conf.5;

doc_DATA = README.ax25ipd HISTORY.ax25ipd COPYING.ax25ipd

AM_CFLAGS = -DUSE_TERMIO
ax25ipd_LDADD = $(AX25_LIB)

ax25ipd_SOURCES =	\
	config.c	\
	crc.c		\
	io.c		\
	kiss.c		\
	ax25ipd.c	\
	ax25ipd.h	\
	process.c	\
	routing.c	\
	syslog.c	\
	bpqether.c

# Needed so that install is optional
etcfiles = ax25ipd.conf
installconf:
	$(mkinstalldirs) $(DESTDIR)$(AX25_SYSCONFDIR)
	@list='$(etcfiles)'; for p in $$list; do \
	  echo " $(INSTALL_DATA) $$p $(DESTDIR)$(AX25_SYSCONFDIR)/$$p"; \
	  $(INSTALL_DATA) $$p $(DESTDIR)$(AX25_SYSCONFDIR)/$$p; \
	done

AX25_SYSCONFDIR=$(sysconfdir)/ax25
AX25_LOCALSTATEDIR=$(localstatedir)/ax25

INCLUDES = -DAX25_SYSCONFDIR=\""$(AX25_SYSCONFDIR)"\" \
	   -DAX25_LOCALSTATEDIR=\""$(AX25_LOCALSTATEDIR)"\"