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