# -------------------------------------------------------------------- # SMS Client, send messages to mobile phones and pagers # # Makefile # # Copyright (C) 1997,1998,1999 Angelo Masci # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Library General Public # License as published by the Free Software Foundation; either # version 2 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this library; if not, write to the Free # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # You can contact the author at this e-mail address: # # angelo@styx.demon.co.uk # # -------------------------------------------------------------------- # $Id: Makefile,v 5.1 1998/02/01 07:11:32 root Exp root $ # -------------------------------------------------------------------- include ../Makefile.config # -------------------------------------------------------------------- all: install: $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(MSERVICEDIR)/services $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(SPOOLDIR)/sms $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(SPOOLDIR)/sms/errors $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(SPOOLDIR)/sms/locks $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(SPOOLDIR)/sms/incoming $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(SPOOLDIR)/sms/named_pipes $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(SPOOLDIR)/sms/services $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(MSERVICEDIR)/scripts ( cd services ;\ for service in * ; do \ $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 644 $$service $(MSERVICEDIR)/services; \ $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(SPOOLDIR)/sms/services/$$service ; \ $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 755 -d $(SPOOLDIR)/sms/errors/$$service ; \ done ) $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 644 scripts/email $(MSERVICEDIR)/scripts $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 644 sms_config $(MSERVICEDIR) $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 644 sms_addressbook $(MSERVICEDIR) $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 644 sms_modem $(MSERVICEDIR) $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 644 sms_services $(MSERVICEDIR) $(INSTALL) -o $(SMSUSER) -g $(SMSGROUP) -m 644 sms_daemons $(MSERVICEDIR) uninstall: $(RM) $(MSERVICEDIR)/services/* $(RM) $(MSERVICEDIR)/sms_config $(RM) $(MSERVICEDIR)/sms_addressbook $(RM) $(MSERVICEDIR)/sms_modem $(RM) $(MSERVICEDIR)/sms_services $(RM) $(MSERVICEDIR)/sms_daemons $(RM) $(MSERVICEDIR)/scripts/* # --------------------------------------------------------------------