File: Makefile.in

package info (click to toggle)
liquidwar 5.6.2-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 15,064 kB
  • ctags: 2,524
  • sloc: ansic: 24,996; xml: 3,897; sh: 3,054; asm: 1,344; makefile: 1,312; php: 486; python: 464; sql: 22
file content (47 lines) | stat: -rw-r--r-- 757 bytes parent folder | download | duplicates (9)
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
ALLEGRO_DAT = dat

DST_EXT = tex
TMP_EXT = pcx
SRC_EXT = gimp.pcx

TEXTURES =  amethyst \
	bricks \
	crash1 \
	electricblue \
	granite2 \
	greenmess \
	lumps \
	marble3 \
	pebbles \
	pine \
	poolbottom \
	qbert \
	redcubes \
	smallsquares \
	terra \
	wood2

DST_FILES = $(addsuffix .$(DST_EXT),$(TEXTURES))
TMP_FILES = $(addsuffix .$(TMP_EXT),$(TEXTURES))

all: texture.dat

texture.dat: $(DST_FILES) $(TMP_FILES)
	@rm -f $@
	@echo Creating $@
	@$(ALLEGRO_DAT) -a $@ $(DST_FILES)

clean:
	@rm -f $(TMP_FILES) $(DST_FILES) *.dat

distclean:
	@rm -f Makefile 

%.$(TMP_EXT): %.$(SRC_EXT)
	@echo Converting $< to $@
	@cp $< $@
	@../../utils/liquidwarcol -s 32 32 $@

%.$(DST_EXT): %.$(TMP_EXT)
	@echo Converting $< to $@
	@../../utils/liquidwartex -s 32 32 $<