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
|
#!/usr/bin/make -f
PACKAGE := fbgetty
DTMPDIR := debian/tmp
build: build-stamp
build-stamp:
test -e debian/control
./configure --prefix=/usr --sysconfdir=/etc --exec-prefix=/ \
--localstatedir=/var --mandir=$${exec_prefix}/share/man --infodir=$${exec_prefix}/share/info \
--enable-secure-exec --with-exec-username=fbgetty \
--with-exec-groupname=fbgetty
$(MAKE)
touch build-stamp
clean:
test -e debian/control
test 0 = "`id -u`" || (echo need root privileges; exit 1)
rm -f build-stamp install-stamp
-$(MAKE) distclean
rm -rf debian/substvars debian/files $(DTMPDIR)
# Build architecture-independent files here.
binary-indep: build
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build debian/control
test -e debian/control
test 0 = "`id -u`" || (echo need root privileges; exit 1)
rm -rf debian/substvars $(DTMPDIR)
install -d --mode=0755 $(DTMPDIR)
install -d --mode=0755 "$(DTMPDIR)/usr/share/doc/$(PACKAGE)"
install -d --mode=0755 "$(DTMPDIR)/usr/share/doc/$(PACKAGE)/examples"
install -d --mode=0755 "$(DTMPDIR)/usr/share/info"
install -d --mode=0755 "$(DTMPDIR)/usr/share/man/man8"
install -d --mode=0755 "$(DTMPDIR)/sbin/"
install --mode=0644 examples/README "$(DTMPDIR)/usr/share/doc/$(PACKAGE)/examples"
install --mode=0644 examples/issue.lch "$(DTMPDIR)/usr/share/doc/$(PACKAGE)/examples"
install --mode=0644 examples/inittab.lch \
"$(DTMPDIR)/usr/share/doc/$(PACKAGE)/examples"
install --mode=0644 examples/issue.fr "$(DTMPDIR)/usr/share/doc/$(PACKAGE)/examples"
install --mode=0644 examples/issue.linux_logo \
"$(DTMPDIR)/usr/share/doc/$(PACKAGE)/examples"
install --mode=0644 examples/issue.fbv \
"$(DTMPDIR)/usr/share/doc/$(PACKAGE)/examples"
install --mode=0644 examples/issue.fortune \
"$(DTMPDIR)/usr/share/doc/$(PACKAGE)/examples"
install --mode=0644 examples/issue.debian \
"$(DTMPDIR)/usr/share/doc/$(PACKAGE)/examples"
install --mode=0644 examples/inittab.debian \
"$(DTMPDIR)/usr/share/doc/$(PACKAGE)/examples"
install --mode=0644 AUTHORS NEWS README THANKS TODO BUGS \
"$(DTMPDIR)/usr/share/doc/$(PACKAGE)"
install --mode=0644 debian/changelog \
"$(DTMPDIR)/usr/share/doc/$(PACKAGE)/changelog.Debian"
install --mode=0644 debian/copyright "$(DTMPDIR)/usr/share/doc/$(PACKAGE)/copyright"
install --mode=0644 ChangeLog "$(DTMPDIR)/usr/share/doc/$(PACKAGE)/changelog"
install --mode=0644 docs/fbgetty.info "$(DTMPDIR)/usr/share/info"
install --mode=0644 docs/fbgetty.8 "$(DTMPDIR)/usr/share/man/man8/"
install --mode=0755 src/fbgetty $(DTMPDIR)/sbin/fbgetty
gzip -9 $(DTMPDIR)/usr/share/man/man8/*
gzip -9 $(DTMPDIR)/usr/share/info/fbgetty.info
gzip -9 $(DTMPDIR)/usr/share/doc/$(PACKAGE)/changelog
gzip -9 $(DTMPDIR)/usr/share/doc/$(PACKAGE)/changelog.Debian
strip --remove-section=.comment --remove-section=.note $(DTMPDIR)/sbin/*
install -d --mode=0755 $(DTMPDIR)/DEBIAN
install --mode=0755 debian/postinst debian/postrm debian/prerm $(DTMPDIR)/DEBIAN
dpkg-shlibdeps $(DTMPDIR)/sbin/*
dpkg-gencontrol -isp
cd $(DTMPDIR) >/dev/null; find * -type f ! -regex '^DEBIAN/.*' -print0 |xargs -r0 md5sum > DEBIAN/md5sums
dpkg --build $(DTMPDIR) ..
source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary
|