diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2007-10-01 15:22:08 +0200 |
---|---|---|
committer | Johannes Berg <johannes@sipsolutions.net> | 2007-10-01 15:22:08 +0200 |
commit | 578203db95c876f4fe6ec5d096525411dcbd8b42 (patch) | |
tree | b7fde86a7eeebd18e5d07a4ea6fffc588b06ea40 /Makefile | |
parent | 1e0e6cb3faa75a80e63df5ef0d4b7274345d2391 (diff) | |
download | dovecot-antispam-578203db95c876f4fe6ec5d096525411dcbd8b42.tar.gz dovecot-antispam-578203db95c876f4fe6ec5d096525411dcbd8b42.tar.xz dovecot-antispam-578203db95c876f4fe6ec5d096525411dcbd8b42.zip |
rename, add install target
Diffstat (limited to '')
-rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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"; \ |