File: Makefile.in

package info (click to toggle)
atool 0.29.0-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 308 kB
  • sloc: perl: 1,343; sh: 243; makefile: 98
file content (82 lines) | stat: -rw-r--r-- 2,267 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Location of source code files
srcdir = @srcdir@

# Root of installation tree (architecture-independent files)
prefix = @prefix@

# Root of installation tree (architecture-dependent files)
exec_prefix = @exec_prefix@

# Path where the atool executables are installed
bindir = @bindir@

# Path where the atool manpages are installed
mandir = @mandir@

# Directory in archive created by `make dist'
distdir = @PACKAGE_TARNAME@-@PACKAGE_VERSION@

# Files created by the configure script
autoconf_targets = atool Makefile atool.1 atool.spec

.PHONY: all clean distclean maintclean install debian rpm

all: $(autoconf_targets)

$(autoconf_targets): %: $(srcdir)/%.in config.status
	./config.status $@

$(srcdir)/configure: $(srcdir)/configure.ac
	cd $(srcdir) && autoconf

config.status: $(srcdir)/configure
	./config.status --recheck

clean:
	rm -f $(srcdir)/debian/atool.{postinst.debhelper,prerm.debhelper}
	rm -f $(srcdir)/debian/{atool.substvars,files,substvars,build-stamp}
	rm -rf $(srcdir)/debian/atool

distclean: clean
	rm -f acat adiff als apack aunpack
	rm -f config.log Makefile
	rm -f atool atool.1 atool.spec
	rm -rf autom4te.cache
	rm -f config.status

maintclean: distclean
	rm -f $(srcdir)/configure

install: all
	install -d $(bindir)
	install -m 755 atool $(bindir)
	ln -s -f atool $(bindir)/aunpack
	ln -s -f atool $(bindir)/apack
	ln -s -f atool $(bindir)/acat
	ln -s -f atool $(bindir)/als
	ln -s -f atool $(bindir)/adiff
	install -d $(mandir)/man1
	install -m 644 atool.1 $(mandir)/man1
	ln -s -f atool.1 $(mandir)/man1/aunpack.1
	ln -s -f atool.1 $(mandir)/man1/apack.1
	ln -s -f atool.1 $(mandir)/man1/acat.1
	ln -s -f atool.1 $(mandir)/man1/als.1
	ln -s -f atool.1 $(mandir)/man1/adiff.1

dist:
	rm -rf $(distdir)
	mkdir -p $(distdir)
	cp -a $(srcdir)/{COPYING,ChangeLog,NEWS,README,TODO} $(distdir)
	cp -a $(srcdir)/{atool.1.in,atool.in,atool.spec.in} $(distdir)
	cp -a $(srcdir)/{Makefile.in,configure.ac,configure} $(distdir)
	mkdir -p $(distdir)/debian
	cp -a $(srcdir)/debian/{changelog,control,copyright,docs,rules} $(distdir)/debian
	chmod a-s $(distdir)
	fakeroot tar cvfz $(distdir).tar.gz $(distdir)
	rm -rf $(distdir)

debian:
	cd $(srcdir) && dpkg-buildpackage -rfakeroot -us -uc -sd -b

rpm: atool.spec
	rpm -bb --clean atool.spec