File: Makefile

package info (click to toggle)
t1lib0 0.7.1-5
  • links: PTS
  • area: main
  • in suites: slink
  • size: 2,740 kB
  • ctags: 2,569
  • sloc: ansic: 20,709; sh: 2,298; makefile: 878; python: 532
file content (66 lines) | stat: -rw-r--r-- 1,691 bytes parent folder | download
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
61
62
63
64
65
66

# Copyright 1997 by Corporation for National Research Initiatives.
# See the file LICENSE for details.

# Leave the blank line at the top of the file to ensure separation
# from preceeding contents of the stock Makefile.pre.in.


# Don't run make until you've read the README file!


PYT1VERSION=0.7
PYTHONMODS=t1lib.py t1Imaging.py

TARBALL=t1python-$(PYT1VERSION).tar.gz


initialize:	Makefile.pre.in
	$(MAKE) -f Makefile.pre.in boot
	$(MAKE)

Makefile.boot:
	cp Makefile Makefile.boot

Makefile.pre.in: Makefile.boot
	CMD="import sys; print sys.exec_prefix + '/lib/python' + sys.version[:3]" ; \
	LIBPL=`python -c "$$CMD"`/config ; \
	cp $$LIBPL/Makefile.pre.in Makefile.pre.in && \
		cat Makefile.boot >>Makefile.pre.in

clean:		t1py-clean
distclean:	t1py-distclean
install:	t1py-install

t1py-clean:
	rm -f *.pyc *.pyo

t1py-distclean:
	rm -f Makefile.pre.in $(TARBALL)

t1py-install:
	if test ! -d $(DESTSHARED) ; then \
		mkdir $(DESTSHARED) ; else true ; fi
	-for i in $(PYTHONMODS); do \
		(set -x; $(INSTALL) $$i $(DESTSHARED)/$$i) ; done

uninstall:
	CMD="import sys; print sys.exec_prefix + '/lib/python' + sys.version[:3]" ; \
	LIBPL=`python -c "$$CMD"`/config ; \
	-for i in $(PYTHONMODS); do \
		(set -x; rm -f $(DESTSHARED)/$$i*); done
	-for i in X $(SHAREDMODS); do \
		if test $$i != X; then \
			(set -x; rm -f $(DESTSHARED)/$$i); \
		fi; \
	done

tarball:	$(TARBALL)

# adding Makefile.boot as a dependency here allows building the tarball
# without running through the "boot" process using Makefile.pre.in.

$(TARBALL):	Makefile.boot distclean
	mv Makefile.boot Makefile
	tar cf - -C .. t1python | gzip >/usr/tmp/tarball-$$$$ && \
		mv /usr/tmp/tarball-$$$$ $(TARBALL)