aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-10-01 15:22:08 +0200
committerJohannes Berg <johannes@sipsolutions.net>2007-10-01 15:22:08 +0200
commit578203db95c876f4fe6ec5d096525411dcbd8b42 (patch)
treeb7fde86a7eeebd18e5d07a4ea6fffc588b06ea40 /Makefile
parent1e0e6cb3faa75a80e63df5ef0d4b7274345d2391 (diff)
downloaddovecot-antispam-578203db95c876f4fe6ec5d096525411dcbd8b42.tar.gz
dovecot-antispam-578203db95c876f4fe6ec5d096525411dcbd8b42.tar.xz
dovecot-antispam-578203db95c876f4fe6ec5d096525411dcbd8b42.zip
rename, add install target
Diffstat (limited to '')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 74a3406..2b0a1e0 100644
--- a/Makefile
+++ b/Makefile
@@ -39,19 +39,22 @@ CFLAGS += -fPIC -shared -Wall
CC ?= "gcc"
objs += antispam-plugin.o $(BACKEND).o
-ALL = antispam
+ALL = lib90_antispam_plugin.so
all: verify_config $(ALL)
%.o: %.c .config antispam-plugin.h
$(CC) -c $(CFLAGS) -o $@ $<
-antispam: $(objs)
- $(CC) $(CFLAGS) $(objs) -o $@.so $(LDFLAGS)
+%.so: $(objs)
+ $(CC) $(CFLAGS) $(objs) -o $@ $(LDFLAGS)
clean:
rm -f *.so *.o *~
+install: all
+ install -o root -g root -m 0660 lib90_antispam_plugin.so $(INSTALLDIR)/
+
verify_config:
@if [ ! -r .config ]; then \
echo -e "\nBuilding the plugin requires a configuration file"; \