annotate Makefile @ 14:3f2fedec798c

patches from debian
author carl
date Sun, 19 Feb 2006 14:35:22 -0800
parents 80ae7e5cb562
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
1 #!/usr/bin/make -f
0
6b1b602514db Initial revision
carl
parents:
diff changeset
2
5
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
3 CFLAGS ?= -g -Wall
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
4 PREFIX ?= /usr/local
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
5 INSTALL ?= install
0
6b1b602514db Initial revision
carl
parents:
diff changeset
6
5
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
7 #---------------- Do not modify below this point ------------------
0
6b1b602514db Initial revision
carl
parents:
diff changeset
8
5
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
9 INSTALL_DIR := $(INSTALL) -p -d -o root -g root -m 0755
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
10 INSTALL_FILE := $(INSTALL) -p -o root -g root -m 0644
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
11 INSTALL_PROGRAM := $(INSTALL) -p -o root -g root -m 0755 # -s
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
12 INSTALL_SCRIPT := $(INSTALL) -p -o root -g root -m 0755
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
13
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
14 VERSION = $(shell cat VERSION)
13
80ae7e5cb562 patches from debian
carl
parents: 11
diff changeset
15 CFLAGS += -DVERSION=\"$(VERSION)\"
14
3f2fedec798c patches from debian
carl
parents: 13
diff changeset
16 CPPFLAGS += -DVERSION=\"$(VERSION)\"
0
6b1b602514db Initial revision
carl
parents:
diff changeset
17
5
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
18 DOCS := AUTHORS ChangeLog CREDITS FILE-FORMAT FILE-FORMAT.html LICENSE TODO \
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
19 VERSION
0
6b1b602514db Initial revision
carl
parents:
diff changeset
20
5
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
21 DISTFILES := $(DOCS) Makefile setup1.vdproj XGetopt.c XGetopt.h common.h \
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
22 debug.c define.h dumpblocks.c getidblock.c libpst.c libpst.h \
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
23 libstrfunc.c libstrfunc.h lspst.c lzfu.c lzfu.h moz-script \
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
24 readlog.vcproj readpst.1 readpst.c readpstlog.1 readpstlog.c \
11
bf12a9d4524c more code cleanup
carl
parents: 8
diff changeset
25 testdebug.c timeconv.c timeconv.h w32pst.sln w32pst.vcproj \
bf12a9d4524c more code cleanup
carl
parents: 8
diff changeset
26 nick2ldif.cpp pst2ldif.cpp
0
6b1b602514db Initial revision
carl
parents:
diff changeset
27
5
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
28 PROGS := lspst readpst readpstlog pst2ldif nick2ldif
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
29 ALL_PROGS := $(PROGS) dumpblocks getidblock testdebug
2
8dd68d722fa8 add ldif converters
carl
parents: 0
diff changeset
30
5
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
31 all: $(PROGS)
0
6b1b602514db Initial revision
carl
parents:
diff changeset
32
5
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
33 XGetopt.o: XGetopt.h
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
34 debug.o: define.h
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
35 dumpblocks.o: define.h
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
36 getidblock.o: XGetopt.h define.h libpst.h
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
37 libpst.o: define.h libstrfunc.h libpst.h timeconv.h
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
38 libstrfunc.o: libstrfunc.h
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
39 lspst.o: libpst.h timeconv.h
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
40 lzfu.o: define.h libpst.h lzfu.h
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
41 readpst.o: XGetopt.h libstrfunc.h define.h libpst.h common.h timeconv.h lzfu.h
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
42 pst2ldif.o: XGetopt.h libstrfunc.h define.h libpst.h common.h timeconv.h lzfu.h
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
43 nick2ldif.o: XGetopt.h libstrfunc.h define.h libpst.h common.h timeconv.h lzfu.h
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
44 readpstlog.o: XGetopt.h define.h
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
45 testdebug.o: define.h
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
46 timeconv.o: timeconv.h common.h
0
6b1b602514db Initial revision
carl
parents:
diff changeset
47
5
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
48 readpst: readpst.o libpst.o timeconv.o libstrfunc.o debug.o lzfu.o
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
49 lspst: debug.o libpst.o libstrfunc.o lspst.o timeconv.o
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
50 getidblock: getidblock.o libpst.o debug.o libstrfunc.o
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
51 testdebug: testdebug.o debug.o
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
52 readpstlog: readpstlog.o debug.o
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
53 dumpblocks: dumpblocks.o libpst.o debug.o libstrfunc.o
0
6b1b602514db Initial revision
carl
parents:
diff changeset
54
8
2b58cf15aaf7 pst is case sensitive, ldap is not
carl
parents: 7
diff changeset
55 pst2ldif: pst2ldif.o libpst.o timeconv.o libstrfunc.o debug.o lzfu.o
2b58cf15aaf7 pst is case sensitive, ldap is not
carl
parents: 7
diff changeset
56 g++ ${CFLAGS} pst2ldif.cpp -o pst2ldif libpst.o timeconv.o libstrfunc.o debug.o lzfu.o
2b58cf15aaf7 pst is case sensitive, ldap is not
carl
parents: 7
diff changeset
57
7
3e3d8b576630 changes to look for duplicates
carl
parents: 5
diff changeset
58 nick2ldif: nick2ldif.o libpst.o timeconv.o libstrfunc.o debug.o lzfu.o
3e3d8b576630 changes to look for duplicates
carl
parents: 5
diff changeset
59 g++ ${CFLAGS} nick2ldif.cpp -o nick2ldif libpst.o timeconv.o libstrfunc.o debug.o lzfu.o
3e3d8b576630 changes to look for duplicates
carl
parents: 5
diff changeset
60
2
8dd68d722fa8 add ldif converters
carl
parents: 0
diff changeset
61 clean:
5
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
62 rm -f core *.o readpst.log $(ALL_PROGS) *~ MANIFEST
0
6b1b602514db Initial revision
carl
parents:
diff changeset
63
5
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
64 distclean: clean
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
65 rm -f libpst-*.tar.gz
0
6b1b602514db Initial revision
carl
parents:
diff changeset
66
6b1b602514db Initial revision
carl
parents:
diff changeset
67 install: all
5
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
68 $(INSTALL_DIR) $(DESTDIR)$(PREFIX)/bin
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
69 $(INSTALL_PROGRAM) readpst{,log} $(DESTDIR)$(PREFIX)/bin
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
70 $(INSTALL_DIR) $(DESTDIR)$(PREFIX)/share/man/man1
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
71 $(INSTALL_FILE) readpst{,log}.1 $(DESTDIR)$(PREFIX)/share/man/man1/
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
72 $(INSTALL_DIR) $(DESTDIR)$(PREFIX)/share/doc/libpst
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
73 $(INSTALL_FILE) $(DOCS) $(DESTDIR)$(PREFIX)/share/doc/libpst/
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
74
0
6b1b602514db Initial revision
carl
parents:
diff changeset
75 uninstall:
5
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
76 -rm -f $(DESTDIR)$(PREFIX)/bin/readpst{,log}
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
77 -rm -f $(DESTDIR)$(PREFIX)/share/man/man1/readpst{,log}.1
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
78
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
79 # stolen from ESR's Software Release Practices HOWTO available at:
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
80 # http://en.tldp.org/HOWTO/Software-Release-Practice-HOWTO/distpractice.html
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
81 MANIFEST: Makefile
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
82 @ls $(DISTFILES) | sed s:^:libpst-$(VERSION)/: >MANIFEST
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
83 tarball libpst-$(VERSION).tar.gz: MANIFEST $(DISTFILES)
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
84 @(cd ..; ln -s libpst libpst-$(VERSION))
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
85 (cd ..; tar -czvf libpst/libpst-$(VERSION).tar.gz `cat libpst/MANIFEST`)
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
86 @(cd ..; rm libpst-$(VERSION))
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
87 @rm -f MANIFEST
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
88
3e9cea0af4a1 add pst2ldif back after merge from newer vendor branch
carl
parents: 2
diff changeset
89 .PHONY: clean distclean uninstall install tarball