]>
Commit | Line | Data |
---|---|---|
1c268b5e DM |
1 | #!/usr/bin/make -f |
2 | # -*- makefile -*- | |
3 | # Sample debian/rules that uses debhelper. | |
4 | # This file was originally written by Joey Hess and Craig Small. | |
5 | # As a special exception, when this file is copied by dh-make into a | |
6 | # dh-make output file, you may use that output file without restriction. | |
7 | # This special exception was added by Craig Small in version 0.37 of dh-make. | |
8 | ||
9 | # Uncomment this to turn on verbose mode. | |
10 | #export DH_VERBOSE=1 | |
11 | ||
12 | BUILDROOT := $(shell pwd) | |
13 | BUILDDIR=debian/gfs2-utils | |
14 | ||
15 | %: | |
16 | dh --with quilt $@ | |
17 | ||
18 | override_dh_auto_install: | |
19 | $(MAKE) install DESTDIR=$(BUILDROOT)/$(BUILDDIR) | |
20 | ||
1c268b5e DM |
21 | # we do not install upstream doc, instead we use |
22 | # dh_installdocs and dh_installexamples to copy files | |
23 | rm -rf $(BUILDDIR)/usr/share/doc/gfs2-utils | |
24 | ||
25 | dh_installdocs | |
26 | ||
2e33af16 | 27 | install -D -m 755 gfs2/init.d/gfs2 $(BUILDDIR)/etc/init.d/gfs2 |
1c268b5e | 28 | |
2e33af16 | 29 | dh_installinit --onlyscripts --init-script=gfs2 |