Makefile 429 Bytes
Newer Older
PoroCYon's avatar
PoroCYon committed
1

PoroCYon's avatar
PoroCYon committed
2
PARTS := dmg-cgb gba gcn linux snes ti8xz80
PoroCYon's avatar
PoroCYon committed
3

PoroCYon's avatar
PoroCYon committed
4
%.pdf.phony:
PoroCYon's avatar
PoroCYon committed
5
	$(MAKE) -C "$*"
PoroCYon's avatar
PoroCYon committed
6
7
8
9
10
11
	@cp -v "$*/bin/pres.pdf" "$*.pdf"

all: $(patsubst %,%.pdf.phony,$(PARTS)) lvb21-pcy.zip

lvb21-pcy.zip: $(patsubst %,%.pdf.phony,$(PARTS))
	zip -vr "$@" $(patsubst %,%.pdf,$(PARTS))
PoroCYon's avatar
PoroCYon committed
12
13

clean:
PoroCYon's avatar
PoroCYon committed
14
	for x in $(PARTS); do $(MAKE) -C "$$x" clean; done
PoroCYon's avatar
PoroCYon committed
15
16

mrproper: clean
PoroCYon's avatar
PoroCYon committed
17
	@$(RM) -v $(patsubst %,%.pdf,$(PARTS)) lvb21-pcy.zip
PoroCYon's avatar
PoroCYon committed
18

PoroCYon's avatar
PoroCYon committed
19
.PHONY: all clean mrproper #$(PARTS)