File: Makefile.am

package info (click to toggle)
pcb 20060822-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 11,260 kB
  • ctags: 6,230
  • sloc: ansic: 62,222; sh: 4,062; pascal: 3,569; yacc: 1,097; makefile: 792; lex: 348; perl: 299; awk: 158; tcl: 63
file content (66 lines) | stat: -rw-r--r-- 2,029 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
## -*- Makefile -*-
##
## $Id: Makefile.am,v 1.2 2006/04/13 13:24:27 danmc Exp $
##


EXTRA_DIST= build_pcb pcb.nsi.in Readme.txt Xdefaults.tgif \
	${TGIF_OBJS} ${XPMS} ${PPMS_16} ${PPMS_256} ${ICONS}

TGIF_OBJS=	pcb_icon_big.obj pcb_icon_med.obj pcb_icon_sml.obj
XPMS=		${TGIF_OBJS:.obj=.xpm}
PPMS_16=	${TGIF_OBJS:.obj=_16.ppm}
PPMS_256=	${TGIF_OBJS:.obj=_256.ppm}
ICONS=		pcb_icon.ico

TGIF_PROG=	XENVIRONMENT=$(srcdir)/Xdefaults.tgif @TGIF@ -print -color -xpm

pkgdatadir=     ${datadir}/${PACKAGE}-${VERSION}

if WIN32
pkgdata_DATA=	Readme.txt
endif


SUFFIXES=	.xpm .obj _16.ppm _256.ppm .ico

%.xpm : %.obj
if MISSING_TGIF
	@echo "Tgif is missing on your system so I will not rebuild $@"
	@echo "even though $< seems newer.  You do not need this unless"
	@echo "you are building for win32 anyway.  And even without it"
	@echo "it just means your icon modifications will not take."
else
	${TGIF_PROG} $<
endif

%_16.ppm : %.xpm
if MISSING_CONVERT
	@echo "convert (from ImageMagick) is missing on your system so I will not rebuild $@"
	@echo "even though $< seems newer.  You do not need this unless"
	@echo "you are building for win32 anyway.  And even without it"
	@echo "it just means your icon modifications will not take."
else
	${CONVERT} -colors 16 $< $@
endif

%_256.ppm : %.xpm
if MISSING_CONVERT
	@echo "convert (from ImageMagick) is missing on your system so I will not rebuild $@"
	@echo "even though $< seems newer.  You do not need this unless"
	@echo "you are building for win32 anyway.  And even without it"
	@echo "it just means your icon modifications will not take."
else
	${CONVERT} -colors 256 $< $@
endif

pcb_icon.ico : ${PPMS_16} ${PPMS_256}
if MISSING_XPMTOPPM
	@echo "xpmtoppm/ppmtowinicon are missing on your system so I will not rebuild $@"
	@echo "even though $< seems newer.  You do not need this unless"
	@echo "you are building for win32 anyway.  And even without it"
	@echo "it just means your icon modifications will not take."
else
	${PPMTOWINICON} -output $@ ${PPMS_16} ${PPMS_256}
endif