Line # Revision Author
1 7 gdshaw@RISCPKG.ORG # This file is part of the RISC OS Packaging Project !System application.
2 # Copyright � 2005 Graham Shaw.
3 # Redistribution and modification are permitted under the terms of the
4 # GNU General Public License (version 2 or any later version).
5
6 VERSION = 0.0.0
7 PACKAGES = System_$(VERSION)
8
9 all:
10 make -C System
11 rm -rf Temp
12 mkdir -p Temp/RiscPkg
13 8 gdshaw@RISCPKG.ORG cp RiscPkg/Copyright Temp/RiscPkg/Copyright
14 7 gdshaw@RISCPKG.ORG cp -R System Temp
15
16 chmod -R 444 Temp/System
17 make -C Temp -f ../RiscPkg/Rules $(PACKAGES)
18 rm -rf Temp
19
20 .PHONY: clean
21 clean:
22 make -C System clean
23 rm -rf Temp
24 rm -f $(PACKAGES)
25
26 .PHONY: distclean
27 distclean: clean
28
29 .PHONY: $(PACKAGES)
30 $(PACKAGES): %:
31 riscpkg-gencontrol $(firstword $(subst _, ,$@)) < ../RiscPkg/Control > RiscPkg/Control
32 rm -f ../$@
33 zip -r ../RiscPkg/$@ * -i@../RiscPkg/$(firstword $(subst _, ,$@)).inc