File: Makefile

package info (click to toggle)
swt-gtk 3.4-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 11,896 kB
  • ctags: 21,996
  • sloc: java: 102,480; ansic: 28,645; cpp: 3,683; sh: 154; makefile: 43; xml: 42
file content (36 lines) | stat: -rw-r--r-- 707 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
RELEASE=3.4
JAVA=swt-gtk-$(RELEASE).jar
CLEANFILES=*.files *.jar *-stamp

JAR=fastjar
JAVAC=javac -classpath .
RM=rm -f

all: $(JAVA)
	$(MAKE) -f make_linux.mak make_atk make_awt make_cairo make_gnome \
		make_mozilla make_swt make_xpcominit make_xulrunner

clean distclean:
	$(RM) $(CLEANFILES)
	$(RM) -r swt-gtk-$(RELEASE)
	-$(MAKE) -f make_linux.mak clean

.PHONY: all clean distclean

swt-gtk-$(RELEASE).files:
	find org -name *.java | sort > $@

%-stamp: %.files
	mkdir -p $*
	for i in `cat $<`; do \
		if [ -e $*/$${i%java}class ]; then \
			echo SKIPPING $$i; \
		else \
			echo $(JAVAC) -d $* $$i; \
			$(JAVAC) -d $* $$i || exit $$?; \
		fi \
	done
	touch $@

%.jar: %-stamp
	$(JAR) -C $* -cf $@ .