File: Makefile.am

package info (click to toggle)
geoip 1.4.8+dfsg-3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 3,272 kB
  • sloc: ansic: 19,471; sh: 10,137; cpp: 526; perl: 177; makefile: 133; awk: 13
file content (29 lines) | stat: -rw-r--r-- 890 bytes parent folder | download | duplicates (2)
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
man_MANS = geoipupdate.1 geoiplookup6.1 geoiplookup.1

EXTRA_DIST = geoiplookup6.1.in geoiplookup.1.in geoipupdate.1.in


edit = sed \
	-e 's|DATADIR|$(pkgdatadir)|g' \
	-e 's|CONF_DIR|$(sysconfdir)|g'

geoipupdate.1 geoiplookup.1 geoiplookup6.1: Makefile
	rm -f $@ $@.tmp
	$(edit) '$(srcdir)/$@.in' >$@.tmp
	mv $@.tmp $@

geoipupdate.1: geoipupdate.1.in
geoiplookup.1: geoiplookup.1.in
geoiplookup6.1: geoiplookup6.1.in

CLEANFILES = geoiplookup6.1 geoipupdate.1 geoiplookup.1

UPDATE_MAN = $(mandir)/man1/geoipupdate.1
LOOKUP_MAN = $(mandir)/man1/geoiplookup.1
LOOKUP6_MAN = $(mandir)/man1/geoiplookup6.1

install-data-hook:
	cat geoipupdate.1 | sed s,DATADIR,$(pkgdatadir), | sed s,CONF_DIR,$(sysconfdir), > $(DESTDIR)$(UPDATE_MAN)
	cat geoiplookup.1 | sed s,DATADIR,$(pkgdatadir), > $(DESTDIR)$(LOOKUP_MAN)
	cat geoiplookup6.1 | sed s,DATADIR,$(pkgdatadir), > $(DESTDIR)$(LOOKUP6_MAN)