File: GNUmakefile.in

package info (click to toggle)
sgml-spell-checker 0.0.20040919-3
  • links: PTS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, lenny, sid, squeeze, stretch, wheezy
  • size: 148 kB
  • sloc: sh: 173; perl: 109; makefile: 2
file content (79 lines) | stat: -rw-r--r-- 1,911 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
67
68
69
70
71
72
73
74
75
76
77
78
79
# @configure_input@

PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
TARFILE = $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)

prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
datadir = @datadir@
pkgdatadir = $(datadir)/$(PACKAGE_NAME)
mandir = @mandir@
man1dir = $(mandir)/man1

srcdir = @srcdir@

INSTALL = $(srcdir)/install-sh -c
INSTALL_SCRIPT = $(INSTALL) -m 755
INSTALL_DATA = $(INSTALL) -m 644
mkinstalldirs = $(srcdir)/mkinstalldirs
ASPELL = @ASPELL@
PERL = @PERL@
SGMLSPL = @SGMLSPL@

DISTFILES = COPYING GNUmakefile.in README configure configure.ac \
	docbook-exclusion-list.txt install-sh sgml-spell-checker.in \
	sgml-spell-filter-spec.pl INSTALL mkinstalldirs \
	sgml-spell-checker.1 NEWS

all: sgml-spell-checker

sgml-spell-checker: sgml-spell-checker.in
	sed -e "s%@PERL\@%$(PERL)%g" \
	    -e "s%@ASPELL\@%$(ASPELL)%g" \
	    -e "s%@SGMLSPL\@%$(SGMLSPL)%g" \
	    -e "s%@pkgdatadir\@%$(pkgdatadir)%g" \
	  $< >$@
	chmod +x $@

install: all installdirs
	$(INSTALL_SCRIPT) sgml-spell-checker $(DESTDIR)$(bindir)
	$(INSTALL_DATA) sgml-spell-filter-spec.pl $(DESTDIR)$(pkgdatadir)
	$(INSTALL_DATA) docbook-exclusion-list.txt $(DESTDIR)$(pkgdatadir)
	$(INSTALL_DATA) sgml-spell-checker.1 $(DESTDIR)$(man1dir)

installdirs:
	$(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(pkgdatadir) $(DESTDIR)$(man1dir)

clean:
	$(RM) sgml-spell-checker
	@$(RM) $(TARFILE).tar.gz

distclean: clean
	$(RM) GNUmakefile config.status config.log

maintainer-clean: distclean

check:

distdir = /tmp/$(TARFILE)

dist: $(TARFILE).tar.gz
	rm -rf $(distdir)

%.gz: %
	gzip -f $<

$(TARFILE).tar: distdir
	tar -C $(dir $(distdir)) -c -h -f $@ $(notdir $(distdir))

distdir:
	mkdir $(distdir)
	cp $(DISTFILES) $(distdir)

GNUmakefile: GNUmakefile.in
	cd $(srcdir) && ./config.status $@

.PHONY: all install installdirs clean distclean maintainer-clean check dist