X-Git-Url: http://andersk.mit.edu/gitweb/mod-vhost-ldap.git/blobdiff_plain/1d4d72a3167de097f025b50fe9ba6ad26f16ea07..refs/heads/ext-config/debian:/Makefile diff --git a/Makefile b/Makefile index e08557c..3cf8eb9 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ VERSION=`cat VERSION` DISTFILES=`cat FILES` all: mod_vhost_ldap.o + install: $(APXS) -i mod_vhost_ldap.la @@ -13,19 +14,33 @@ clean: rm -f *.la rm -f *.slo rm -rf .libs - rm -rf mod_vhost_ldap-$(VERSION) - rm -rf mod_vhost_ldap-$(VERSION).tar.gz + +restart: + > /var/log/apache2/error.log + /usr/bin/apache2sctl stop + /usr/bin/apache2sctl start mod_vhost_ldap.o: mod_vhost_ldap.c - $(APXS) -Wc,-Wall -Wc,-Werror -Wc,-g -Wc,-DDEBUG -Wc,-DMOD_VHOST_LDAP_VERSION=\\\"mod_vhost_ldap/$(VERSION)\\\" -c -lldap_r mod_vhost_ldap.c -archive: - svn export svn+ssh://ondrej@svn.debian.org/svn/modvhostldap mod-vhost-ldap-`cat VERSION`; - tar czf ../mod-vhost-ldap-$(VERSION).tar.gz mod-vhost-ldap-$(VERSION); - tar cjf ../mod-vhost-ldap-$(VERSION).tar.bz2 mod-vhost-ldap-$(VERSION); - rm -rf mod-vhost-ldap-$(VERSION); + $(APXS) -Wc,-Wall -Wc,-Werror -Wc,-g -Wc,-DDEBUG -Wc,-DMOD_VHOST_LDAP_VERSION=\\\"mod_vhost_ldap/$(VERSION)\\\" -c -lcrypt -lldap_r mod_vhost_ldap.c + +encclean: + rm enc + +encrypt: + gcc -Wall encrypt.c -o enc -lcrypt + +dtpasswdclean: + rm dtpasswd + +dtpasswd: + gcc -Wall -Werror -l crypt -o dtpasswd dtpasswd.c + +deb: + debuild --no-tgz-check format: indent *.c -.PHONY: all install clean archive format +.PHONY: all install clean archive format encrypt encclean +