aboutsummaryrefslogtreecommitdiffstats
path: root/libical/Makefile.in
blob: 54a7fa0f2516e75a085e26f70f38a3097ef08c4e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
VERSION = 0.15
DISTNAME = libical
SUBDIRS = src

prefix = @prefix@
PREFIX = ${prefix}
EXEC_PREFIX = @exec_prefix@
BIN_DIR = $(EXEC_PREFIX)/bin
LIB_DIR = $(EXEC_PREFIX)/lib
INCLUDE_DIR = $(PREFIX)/include   

INSTALL        = @INSTALL@
INSTALL_DATA   = ${INSTALL} -m 644
INSTALL_PROGRAM= ${INSTALL} -m 755       


all:
    for dir in $(SUBDIRS) ; do \
      (cd $$dir ; $(MAKE) $@) || exit 1; \
    done

depend:
    for dir in $(SUBDIRS) ; do \
      (cd $$dir ; $(MAKE) $@) || exit 1; \
    done

clean:
    -/bin/rm -rf $(DISTNAME)* config.log config.cache config.status
    -/bin/rm *~
    for dir in $(SUBDIRS) ; do \
      (cd $$dir ; $(MAKE) $@) || exit 1; \
    done

dist: clean
    distname="$(DISTNAME)-$(VERSION)"; \
    distfiles=`find . -name "$$distname" -prune -o -name "design" -prune -o -name "rfc*" -prune -o -name "comp-cc" -prune -o -name "RCS" -prune -o -print | sed 's/^\.\///' ` ;\
    mkdir $$distname ; \
    for file in $$distfiles; do \
      test -d $$file && mkdir $$distname/$$file; \
          test -f $$file &&   { ln ./$$file $$distname/$$file \
          || { echo copying $$file instead; cp -p $$file $$distname/$$file;};}; \
        done; \
    tar -czvf $$distname.tar.gz $$distname ; 


install: 
    @for i in $(LIB_DIR) $(INCLUDE_DIR) $(BIN_DIR);\
    do \
      if [ ! -d $$i ] ; then \
             mkdir $$i; \
             echo "Making directory $$i"; \
             chmod 755 $$i;\
             else true; \
      fi; \
    done;

    for dir in $(SUBDIRS) ; do \
      (cd $$dir ; $(MAKE) $@) || exit 1; \
    done