| 1 | # |
|---|
| 2 | # $Id: Makefile,v 1.2 2003/03/28 01:08:38 jonathan Exp $ |
|---|
| 3 | # ---------------------------------------------------------------------- |
|---|
| 4 | # AlternC - Web Hosting System |
|---|
| 5 | # Copyright (C) 2002 by the AlternC Development Team. |
|---|
| 6 | # http://alternc.org/ |
|---|
| 7 | # ---------------------------------------------------------------------- |
|---|
| 8 | # Based on: |
|---|
| 9 | # Valentin Lacambre's web hosting softwares: http://altern.org/ |
|---|
| 10 | # ---------------------------------------------------------------------- |
|---|
| 11 | # LICENSE |
|---|
| 12 | # |
|---|
| 13 | # This program is free software; you can redistribute it and/or |
|---|
| 14 | # modify it under the terms of the GNU General Public License (GPL) |
|---|
| 15 | # as published by the Free Software Foundation; either version 2 |
|---|
| 16 | # of the License, or (at your option) any later version. |
|---|
| 17 | # |
|---|
| 18 | # This program is distributed in the hope that it will be useful, |
|---|
| 19 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 20 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 21 | # GNU General Public License for more details. |
|---|
| 22 | # |
|---|
| 23 | # To read the license please visit http://www.gnu.org/copyleft/gpl.html |
|---|
| 24 | # ---------------------------------------------------------------------- |
|---|
| 25 | # Purpose of file: Makefile des binaires de /usr/lib/alternc |
|---|
| 26 | # ---------------------------------------------------------------------- |
|---|
| 27 | # |
|---|
| 28 | default: install |
|---|
| 29 | |
|---|
| 30 | all: mail_add mail_del quota_edit quota_get mem_add mem_del db_create \ |
|---|
| 31 | lst_adddom lst_deldom lst_getfile lst_putfile lst_addlst lst_dellst lst_delfile \ |
|---|
| 32 | mhonarc wmkdir mailman.create mailman.delete |
|---|
| 33 | |
|---|
| 34 | mhonarc: mhonarc.c |
|---|
| 35 | cc mhonarc.c -o mhonarc |
|---|
| 36 | wmkdir: wmkdir.c |
|---|
| 37 | cc wmkdir.c -o wmkdir |
|---|
| 38 | |
|---|
| 39 | db_create: db_create.c |
|---|
| 40 | cc db_create.c -o db_create |
|---|
| 41 | |
|---|
| 42 | quota_get: quota_get.c |
|---|
| 43 | cc quota_get.c -o quota_get |
|---|
| 44 | quota_edit: quota_edit.c |
|---|
| 45 | cc quota_edit.c -o quota_edit |
|---|
| 46 | |
|---|
| 47 | mail_add: mail_add.c |
|---|
| 48 | cc mail_add.c -o mail_add |
|---|
| 49 | mail_del: mail_del.c |
|---|
| 50 | cc mail_del.c -o mail_del |
|---|
| 51 | |
|---|
| 52 | mem_add: mem_add.c |
|---|
| 53 | cc mem_add.c -o mem_add |
|---|
| 54 | mem_del: mem_del.c |
|---|
| 55 | cc mem_del.c -o mem_del |
|---|
| 56 | |
|---|
| 57 | lst_adddom: lst_adddom.c |
|---|
| 58 | cc lst_adddom.c -o lst_adddom |
|---|
| 59 | lst_deldom: lst_deldom.c |
|---|
| 60 | cc lst_deldom.c -o lst_deldom |
|---|
| 61 | lst_getfile: lst_getfile.c |
|---|
| 62 | cc lst_getfile.c -o lst_getfile |
|---|
| 63 | lst_putfile: lst_putfile.c |
|---|
| 64 | cc lst_putfile.c -o lst_putfile |
|---|
| 65 | lst_addlst: lst_addlst.c |
|---|
| 66 | cc lst_addlst.c -o lst_addlst |
|---|
| 67 | lst_dellst: lst_dellst.c |
|---|
| 68 | cc lst_dellst.c -o lst_dellst |
|---|
| 69 | lst_delfile: lst_delfile.c |
|---|
| 70 | cc lst_delfile.c -o lst_delfile |
|---|
| 71 | |
|---|
| 72 | mailman.create: mailman.create.c |
|---|
| 73 | cc mailman.create.c -o mailman.create |
|---|
| 74 | |
|---|
| 75 | mailman.delete: mailman.delete.c |
|---|
| 76 | cc mailman.delete.c -o mailman.delete |
|---|
| 77 | |
|---|
| 78 | install: all |
|---|
| 79 | chmod a+rx,a-w,u+s mail_add mail_del quota_edit quota_get mem_add mem_del db_create mhonarc wmkdir |
|---|
| 80 | chmod a+rx,a-w,u+s,g+s lst_* mailman* |
|---|
| 81 | ## Devrait etre fait par le paquet debian |
|---|
| 82 | # chown root.root mail_add mail_del quota_edit quota_get mem_add mem_del db_create mhonarc wmkdir |
|---|
| 83 | # chown sympa.sympa lst_* |
|---|
| 84 | # chown root.list mailman* |
|---|
| 85 | |
|---|
| 86 | clean: |
|---|
| 87 | rm -f *.o *~; \ |
|---|
| 88 | for i in mail_add mem_add quota_get db_create lst_delfile mail_del mem_del lst_dellst wmkdir lst_adddom mailman.create mhonarc lst_getfile lst_addlst mailman.delete quota_edit lst_putfile lst_deldom; \ |
|---|
| 89 | do rm -f $$i; \ |
|---|
| 90 | done |
|---|