File: Makefile

package info (click to toggle)
htmlgen 2.2.2-12.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,840 kB
  • ctags: 1,480
  • sloc: python: 4,518; makefile: 93
file content (80 lines) | stat: -rw-r--r-- 2,284 bytes parent folder | download | duplicates (7)
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#'$Id: Makefile,v 1.1 1998/03/19 18:41:05 friedric Exp friedric $'
# Makefile for HTMLgen (requires gnu make)
#

VERSION = 2_2

PACKAGE = HTMLgen

DOCS=        README Makefile ChangeLog HTML.rc HTMLgen.rc appt.txt 

MODULES=     HTMLgen.py HTMLcolors.py HTMLutil.py HTMLcalendar.py \
		barchart.py colorcube.py imgsize.py NavLinks.py Formtools.py

MODULESC=    HTMLgen.pyc HTMLcolors.pyc HTMLutil.pyc HTMLcalendar.pyc \
		barchart.pyc colorcube.pyc imgsize.pyc NavLinks.pyc Formtools.pyc

PIL=	     ImageH.py ImageFileH.py ImagePaletteH.py \
		GifImagePluginH.py JpegImagePluginH.py PngImagePluginH.py

PILC=	     ImageH.pyc ImageFileH.pyc ImagePaletteH.pyc \
		GifImagePluginH.pyc JpegImagePluginH.pyc PngImagePluginH.pyc

EXTRAS=	     StickyForm.py cgiapp.py installp.py imgfix.py 

SUBDIRS=     image html data

TEST=        HTMLtest.py

DIST_DOCS =    $(addprefix HTMLgen/, $(DOCS))
DIST_MODULES = $(addprefix HTMLgen/, $(MODULES) $(PIL) $(EXTRAS))
DIST_SUBDIRS = $(addprefix HTMLgen/, $(SUBDIRS))
DIST_TEST =    $(addprefix HTMLgen/, $(TEST))
DIST_FILES=    $(DIST_DOCS) $(DIST_MODULES) $(DIST_TEST) $(DIST_SUBDIRS)

all:
	@echo Type \"make install\" to install HTMLgen.
	@echo The modules will be put in site-packages.
	@echo
	@echo Other targets include: test gendoc compileall dist bigdist 

dist:	test gendoc bigdist

bigdist:
	(cd ..; tar chf - $(DIST_FILES)) | gzip --best > $(PACKAGE).tgz
	uuencode $(PACKAGE).tgz $(PACKAGE).tgz > $(PACKAGE).tgz.uu

smalldist:
	(cd ..; tar chf -  $(DIST_MODULES) ) | gzip --best > small$(PACKAGE).tgz
	uuencode small$(PACKAGE).tgz small$(PACKAGE).tgz > small$(PACKAGE).tgz.uu

test:
	python $(TEST)

gendoc:
	gendoc -i -d html -f HTMLg -h HTMLgen $(MODULES) $(EXTRAS)
	python HTMLutil.py -s

compileall:
	python -c "import compileall; compileall.compile_dir('.',0)"

install: compileall
	python installp.py -f $(MODULES) $(MODULESC) $(PIL) $(PILC)
	@echo Installation of $(PACKAGE) done.

debinstall:
	if [ -z "$(PYLIBDIR)" ]; then \
	  echo "Unset PYLIBDIR."; \
	  exit 1; \
	fi; \
	for f in $(MODULES) $(PIL); do \
	  install -m 644 $$f $(PYLIBDIR)/; \
	done
	@echo Installation of $(PACKAGE) done.

checkin:
	ci -u $(MODULES) $(PIL) $(EXTRAS) $(TEST) Makefile

release:
	rcs -N$(VERSION): $(MODULES) $(PIL) $(EXTRAS) $(TEST) Makefile