1###################################################################### 2# Makefile.popmap February 2000 3# Horms horms@verge.net.au 4# 5# Make file to build a GDBM popmap.gdbm.db and a Berkeley DB 6# popmap.bdb.db from an ASCII popmap using makegdbm and makebdm 7# respectivly. 8# 9# perdition 10# Mail retrieval proxy server 11# Copyright (C) 1999-2005 Horms 12# 13# This program is free software; you can redistribute it and/or 14# modify it under the terms of the GNU General Public License as 15# published by the Free Software Foundation; either version 2 of the 16# License, or (at your option) any later version. 17# 18# This program is distributed in the hope that it will be useful, but 19# WITHOUT ANY WARRANTY; without even the implied warranty of 20# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21# General Public License for more details. 22# 23# You should have received a copy of the GNU General Public License 24# along with this program; if not, write to the Free Software Foundation, 25# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 26# 27###################################################################### 28 29BINDIR=/usr/local/bin 30MAKEBDB=$(BINDIR)/makebdb 31MAKEGDBM=$(BINDIR)/makegdbm 32 33.PHONY = all clean 34 35all: popmap.gdbm.db popmap.bdb.db 36 37popmap.gdbm.db: popmap 38 test ! -x $(MAKEGDBM) || $(MAKEGDBM) $@ < popmap 39 40popmap.bdb.db: popmap 41 test ! -x $(MAKEBDB) || $(MAKEBDB) $@ < popmap 42 43clean: 44 rm -f popmap.gdbm.db popmap.bdb.db *~ *.bak core 45