File: Makefile

package info (click to toggle)
debian-edu 0.813
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 236 kB
  • ctags: 20
  • sloc: perl: 399; makefile: 61
file content (31 lines) | stat: -rwxr-xr-x 1,088 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
#!/usr/bin/make -f

# One of stable, sarge, etch, unstable
TARGET_DIST = etch

debian/control: gen-control debian/control.stub tasks/* sources.list.$(TARGET_DIST)
	(cat debian/control.stub; \
	 ./gen-control -s ./sources.list.$(TARGET_DIST) -D -c -m -i -A) > $@.new && mv $@.new $@

tasksel: debian-edu-tasks.desc
debian-edu-tasks.desc: gen-control tasks/* sources.list.$(TARGET_DIST)
	./gen-control -s ./sources.list.$(TARGET_DIST) -t -A > debian-edu-tasks.desc.new && mv debian-edu-tasks.desc.new debian-edu-tasks.desc

packages.txt: gen-control tasks/* sources.list.$(TARGET_DIST)
	./gen-control -s ./sources.list.$(TARGET_DIST) -a > packages.txt.$$$$ && mv packages.txt.$$$$ packages.txt

by_vote:
	rm -f by_vote
	wget http://developer.skolelinux.no/popcon/by_vote

packages-sorted.txt: packages.txt by_vote
	for pkg in `cat packages.txt` ; do \
		grep " $$pkg " by_vote ; \
	done | LANG=C sort -r -n -k 4 -k 3 > packages-sorted.txt
usage: packages-sorted.txt

clean: 
	rm -rf tmp
	rm -f tasks/*~a
	rm -rf tasksel debian-edu-tasks.desc
	rm -f packages.txt by_vote packages-sorted.txt