You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.in 1.1KB

16 years ago
16 years ago
16 years ago
16 years ago
16 years ago
16 years ago
16 years ago
16 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041
  1. .PHONY: perl clean $(SUBDIRS)
  2. all: $(OBJDIR) perl $(TARGETS)
  3. $(OBJDIR):
  4. mkdir -p $(OBJDIR)
  5. perl: perl/Makefile
  6. cd perl && make && cd ..
  7. perl/Makefile:
  8. cd perl && perl Makefile.PL && cd ..
  9. install: $(EXEC)
  10. cd perl && make install && cd ..
  11. $(INSTALL) -b $(EXEC) $(PREFIX)/sbin/$(EXEC)
  12. $(INSTALL) -b rspamc.pl $(PREFIX)/bin/rspamc
  13. $(INSTALL) -v $(EXEC).sh $(PREFIX)/etc/rc.d
  14. #$(INSTALL) -m0644 rspamd.8 $(MANPATH)/man8
  15. #$(INSTALL) -m0644 rspamd.conf.sample $(PREFIX)/etc
  16. $(MKDIR) -o $(RSPAMD_USER) -g $(RSPAMD_GROUP) /var/run/rspamd
  17. clean: clean-subdirs perl/Makefile
  18. rm -f $(OBJDIR)/*.o $(EXEC) *core
  19. rm -fr $(OBJDIR)
  20. rm -f $(SRCDIR)/cfg_lex.c $(SRCDIR)/cfg_yacc.c $(SRCDIR)/cfg_yacc.h
  21. rm -f config.cache
  22. cd perl && make clean && cd ..
  23. dist-clean: clean dist-clean-subdirs
  24. rm -f Makefile
  25. rm -f test/Makefile
  26. rm -f config.log
  27. rm -f $(SRCDIR)/md5.h $(SRCDIR)/md5.c $(SRCDIR)/queue.h $(SRCDIR)/config.h $(SRCDIR)/modules.c $(SRCDIR)/modules.h
  28. cd perl && rm -f Makefile.old && rm -f Makefile.PL && cd ..
  29. creategroup:
  30. @echo "Create group $(RSPAMD_GROUP) before installing!"
  31. createuser:
  32. @echo "Create user $(RSPAMD_USER) before installing!"