File: Makefile.am

package info (click to toggle)
xstow 1.0.2-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 1,064 kB
  • ctags: 1,073
  • sloc: cpp: 7,264; sh: 1,216; makefile: 196; awk: 26
file content (66 lines) | stat: -rw-r--r-- 1,548 bytes parent folder | download | duplicates (3)
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
61
62
63
64
65
66
EXTRA_DIST=xstow.s.pod xstow.ini.s.pod xstow.1 xstow.html \
           xstow.ini xstow.ini.html xstow.ini.5 nignore.ini \
	   check-stow.sh ifdef.awk merge-info.1 merge-info.s.pod

man1_MANS=xstow.1

if ENABLE_INI
  man5_MANS=xstow.ini.5
endif

if ENABLE_MERGE
  man1_MANS+= merge-info.1
endif

DEFINES=

if ENABLE_STATIC
  DEFINES+= ENABLE_STATIC
endif

if ENABLE_INI
  DEFINES+= ENABLE_INI
endif

if ENABLE_FNMATCH
  DEFINES+= ENABLE_FNMATCH
endif

if ENABLE_REGEX
  DEFINES+= ENABLE_REGEX
endif

if ENABLE_CURSES
  DEFINES+= ENABLE_CURSES
endif


if ENABLE_INI
if ENABLE_FNMATCH
  DEFINES+= ENABLE_NIGNORE
endif
endif

predef:
	awk -v defines="$(DEFINES)" -f ifdef.awk xstow.s.pod > xstow.pod
	awk -v defines="$(DEFINES)" -f ifdef.awk xstow.ini.s.pod > xstow.ini.pod
	awk -v defines="$(DEFINES)" -f ifdef.awk merge-info.s.pod > merge-info.pod

man: predef	
	version=$(VERSION) ; \
	pod2man --stderr -s 1 -c "XStow Reference Guide" -r "XStow $$version" xstow.pod xstow.1 ;\
	pod2man --stderr -s 1 -c "XStow Reference Guide" -r "XStow $$version" merge-info.pod merge-info.1 ;\
	pod2man --stderr -s 5 -c "XStow Reference Guide" -r "XStow $$version" xstow.ini.pod xstow.ini.5

html: predef
	pod2html xstow.pod > xstow.html
	pod2html xstow.ini.pod > xstow.ini.html
	pod2html merge-info.pod > merge-info.html

docdir = $(datadir)/doc/$(PACKAGE)

install-data-local:
	$(mkinstalldirs) $(DESTDIR)$(docdir)
	$(INSTALL_DATA) xstow.html $(DESTDIR)$(docdir)
	$(INSTALL_DATA) xstow.ini.html $(DESTDIR)$(docdir)
	$(INSTALL_DATA) xstow.ini $(DESTDIR)$(docdir)