File: Makefile

package info (click to toggle)
rootstrap 0.3.24-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 156 kB
  • ctags: 41
  • sloc: sh: 260; python: 185; makefile: 68
file content (39 lines) | stat: -rw-r--r-- 877 bytes parent folder | download | duplicates (4)
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
prefix=/usr
exec_prefix=$(prefix)
sysconfdir=/etc
libdir=$(exec_prefix)/lib
mandir=$(prefix)/share/man
pkgconfdir=$(sysconfdir)/rootstrap
pkglibdir=$(libdir)/rootstrap

all: rootstrap rootstrap.1

install:
	install -d $(DESTDIR)$(exec_prefix)/bin
	install rootstrap $(DESTDIR)$(exec_prefix)/bin

	install -d $(DESTDIR)$(pkglibdir)/modules
	install -m 755 modules/[a-z]* $(DESTDIR)$(pkglibdir)/modules

	install -d $(DESTDIR)$(pkglibdir)
	install builder $(DESTDIR)$(pkglibdir)

	install -d $(DESTDIR)$(pkgconfdir)/modules
	install -m 644 rootstrap.conf $(DESTDIR)$(pkgconfdir)

	install -d $(DESTDIR)$(mandir)/man1
	install -m 644 rootstrap.1 $(DESTDIR)$(mandir)/man1

	install -m 755 dhclient-script $(DESTDIR)$(pkgconfdir)

clean:
	-rm -f rootstrap.1

rootstrap.1: rootstrap.sgml
	docbook-to-man $< > $@

check: test.ext2
	linux ubd0=$<

test.ext2: rootstrap
	./rootstrap $@