annotate Makefile @ 1:43e8802f08c5 debian libpst_0_5_1

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