2008-09-10 15:58:54 +02:00
|
|
|
.PHONY: perl clean $(SUBDIRS)
|
2008-05-08 17:05:30 +02:00
|
|
|
|
2008-11-01 16:01:05 +01:00
|
|
|
all: $(OBJDIR) perl $(TARGETS)
|
|
|
|
|
|
|
|
$(OBJDIR):
|
|
|
|
mkdir -p $(OBJDIR)
|
2008-08-19 17:46:10 +02:00
|
|
|
|
2008-08-20 15:09:13 +02:00
|
|
|
perl: perl/Makefile
|
2008-08-19 17:46:10 +02:00
|
|
|
cd perl && make && cd ..
|
2008-05-08 17:05:30 +02:00
|
|
|
|
2008-09-10 15:58:54 +02:00
|
|
|
perl/Makefile:
|
2008-08-20 15:09:13 +02:00
|
|
|
cd perl && perl Makefile.PL && cd ..
|
|
|
|
|
2008-06-10 15:41:41 +02:00
|
|
|
install: $(EXEC)
|
2008-08-20 15:09:13 +02:00
|
|
|
cd perl && make install && cd ..
|
2008-05-08 17:05:30 +02:00
|
|
|
$(INSTALL) -b $(EXEC) $(PREFIX)/sbin/$(EXEC)
|
2009-01-16 15:02:26 +01:00
|
|
|
$(INSTALL) -b rspamc.pl $(PREFIX)/bin/rspamc
|
2008-05-08 17:05:30 +02:00
|
|
|
$(INSTALL) -v $(EXEC).sh $(PREFIX)/etc/rc.d
|
|
|
|
#$(INSTALL) -m0644 rspamd.8 $(MANPATH)/man8
|
|
|
|
#$(INSTALL) -m0644 rspamd.conf.sample $(PREFIX)/etc
|
|
|
|
$(MKDIR) -o $(RSPAMD_USER) -g $(RSPAMD_GROUP) /var/run/rspamd
|
|
|
|
|
2008-09-10 15:58:54 +02:00
|
|
|
clean: clean-subdirs perl/Makefile
|
2008-11-01 16:01:05 +01:00
|
|
|
rm -f $(OBJDIR)/*.o $(EXEC) *core
|
|
|
|
rm -fr $(OBJDIR)
|
|
|
|
rm -f $(SRCDIR)/cfg_lex.c $(SRCDIR)/cfg_yacc.c $(SRCDIR)/cfg_yacc.h
|
2008-11-01 20:48:59 +01:00
|
|
|
rm -f config.cache
|
2008-08-19 17:46:10 +02:00
|
|
|
cd perl && make clean && cd ..
|
2008-05-08 17:05:30 +02:00
|
|
|
|
2008-09-10 15:58:54 +02:00
|
|
|
dist-clean: clean dist-clean-subdirs
|
2008-05-08 17:05:30 +02:00
|
|
|
rm -f Makefile
|
2008-09-08 16:18:56 +02:00
|
|
|
rm -f test/Makefile
|
2008-05-08 17:05:30 +02:00
|
|
|
rm -f config.log
|
2008-12-03 17:48:15 +01:00
|
|
|
rm -f $(SRCDIR)/md5.h $(SRCDIR)/md5.c $(SRCDIR)/queue.h $(SRCDIR)/config.h $(SRCDIR)/modules.c $(SRCDIR)/modules.h
|
2008-08-19 17:46:10 +02:00
|
|
|
cd perl && rm -f Makefile.old && rm -f Makefile.PL && cd ..
|
2008-05-08 17:05:30 +02:00
|
|
|
|
|
|
|
creategroup:
|
|
|
|
@echo "Create group $(RSPAMD_GROUP) before installing!"
|
|
|
|
|
|
|
|
createuser:
|
|
|
|
@echo "Create user $(RSPAMD_USER) before installing!"
|