1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl/manpages/docbook.xsl
XP = xsltproc --nonet --param man.charmap.use.subset "0"
all: imapcopy imapcopy.1
imapcopy: imapcopymain.pas imaptools.pas inet.pp
fpc -k-z -krelro -g imapcopy
imapcopy.1: debian/manpage.xml
$(XP) $(DB2MAN) $<
clean:
rm -f *.ppu *.o imapcopy imapcopy.1
install: imapcopy
install -d $(DESTDIR)/usr/bin
install -d $(DESTDIR)/usr/share/man/man1
install imapcopy $(DESTDIR)/usr/bin/imapcopy
install imapcopy.1 $(DESTDIR)/usr/share/man/man1/imapcopy.1
.PHONY: clean install all
|