-
Notifications
You must be signed in to change notification settings - Fork 47
/
Makefile.am
88 lines (70 loc) · 1.61 KB
/
Makefile.am
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
if MAINTAINER_MODE
SUBDIRS = tools data script lib src devel-docs test
else
SUBDIRS = tools script lib src devel-docs test
endif
man_MANS = man/enca.1
DISTCHECK_CONFIGURE_FLAGS = --enable-maintainer-mode
ACLOCAL_AMFLAGS = -I m4
M4TESTS = \
m4/crash-me \
m4/gtk-doc.m4 \
m4/libiconv.m4 \
m4/libm.m4 \
m4/librecode.m4 \
m4/localias.m4 \
m4/long-text.l2 \
m4/recode-bugs.m4 \
m4/tools.m4 \
m4/typevar.m4
EXTRA_DIST = \
FAQ \
DEVELOP.md \
README.md \
TODO \
ChangeLog.prelib \
autogen.sh \
config.rpath \
enca.pc.in \
enca.spec \
enca.spec.in \
iconvcap.c \
topline.sh \
man/enca.1 \
$(M4TESTS)
####################### maintainer's targets ######################
# alias test=check
test: check
docs:
cd $(srcdir)/devel-docs && $(MAKE) docs
.PHONY: test docs
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = enca.pc
$(pkgconfig_DATA): config.status
install-data-hook:
cd $(DESTDIR)$(man1dir); \
inst1=`echo enca | sed '$(transform)'`.1; \
inst2=`echo enconv | sed '$(transform)'`.1; \
$(LN_S) -f $$inst1 $$inst2
uninstall-hook:
inst=`echo enconv | sed '$(transform)'`.1; \
rm -f $(DESTDIR)$(man1dir)/$$inst
clean-local:
rm -f iconvcap iconvcap.o *~ core.*
distclean-local:
rm -f iconvenc.h
if MAINTAINER_MODE
dist-check-maintainer:
else
dist-check-maintainer:
@echo "*** maintainer mode must be enabled in order to make dist"
@false
endif
dist-hook: dist-check-maintainer
cat $(distdir)/tools/iconvenc.null >$(distdir)/iconvenc.h
if MAINTAINER_MODE
# To be run [by hand] before release (not the same as before making dists).
update:
./topline.sh
endif
.PHONY: update