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
|
#!/usr/bin/make -f
define checkdir
test -f debian/rules
endef
build:
clean: checkroot
rm -rf debian/ttf-farsiweb
install: build checkroot
install -d debian/ttf-farsiweb/etc/defoma/hints/ \
debian/ttf-farsiweb/usr/share/fonts/truetype/ttf-farsiweb/
install -m0644 debian/defoma-hints \
debian/ttf-farsiweb/etc/defoma/hints/ttf-farsiweb.hints
install -m0644 *.ttf debian/ttf-farsiweb/usr/share/fonts/truetype/ttf-farsiweb/
binary-arch: build install
binary-indep: build install
install -d debian/ttf-farsiweb/usr/share/doc/ttf-farsiweb \
debian/ttf-farsiweb/DEBIAN
install -m0644 debian/changelog debian/ttf-farsiweb/usr/share/doc/ttf-farsiweb/changelog.Debian
install -m0644 NEWS debian/ttf-farsiweb/usr/share/doc/ttf-farsiweb/
install -m0644 debian/copyright debian/ttf-farsiweb/usr/share/doc/ttf-farsiweb/copyright
gzip -9f debian/ttf-farsiweb/usr/share/doc/ttf-farsiweb/changelog.Debian
install -m0755 debian/postinst debian/prerm debian/ttf-farsiweb/DEBIAN
install -m0644 debian/conffiles debian/ttf-farsiweb/DEBIAN
dpkg-gencontrol -ldebian/changelog -isp -Pdebian/ttf-farsiweb
chmod 644 debian/ttf-farsiweb/DEBIAN/control
cd debian/ttf-farsiweb && find . -type f ! -path "etc/defoma/hints/ttf-farsiweb.hints" ! -regex '.*/DEBIAN/.*' -printf '%P\0' | xargs -r0 md5sum > DEBIAN/md5sums
chown -R root:root debian/ttf-farsiweb
dpkg-deb --build debian/ttf-farsiweb ..
checkroot:
$(checkdir)
test root = "`whoami`"
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure checkroot
|