aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/001_add-main-makefile.full+lite.patch
blob: 9f4b8d1af9bc2581781ab74b1cac5f085a98f23b (plain)
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
48
49
50
51
52
53
54
Description: Provide main Makefile for whole source tree
 By design this patch is not needed to be sent upstream.
Forwarded: not-needed
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Last-Update: 2011-12-31
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,46 @@
+#!/usr/bin/make -f
+
+all: build
+
+build: build-arch build-indep
+
+clean:
+	$(MAKE) -C nxcomp $@
+	$(MAKE) -C nxproxy $@
+	if test -d nx-X11; then $(MAKE) -C nx-X11 $@; fi
+	if test -d nxcompext; then $(MAKE) -C nxcompext $@; fi
+	if test -d nxcompshad; then $(MAKE) -C nxcompshad $@; fi
+
+distclean:
+	$(MAKE) -C nxcomp $@
+	$(MAKE) -C nxproxy $@
+	if test -d nx-X11; then $(MAKE) -C nx-X11 $@; fi
+	if test -d nxcompext; then $(MAKE) -C nxcompext $@; fi
+	if test -d nxcompshad; then $(MAKE) -C nxcompshad $@; fi
+
+build-arch:
+	if test -d nx-X11; then \
+	    cd nxcomp && autoconf; cd ..; \
+	    cd nxcompext && autoconf; cd ..; \
+	    cd nxcompshad && autoconf; cd ..; \
+	    cd nx-X11 && make World && cd ..; \
+	else \
+	    cd nxcomp && autoconf && ./configure && make; cd ..; \
+	fi
+	cd nxproxy && autoconf && ./configure && make; cd ..
+
+build-indep:
+
+install:
+	$(MAKE) -C nxcomp $@
+	$(MAKE) -C nxproxy $@
+	if test -d nx-X11; then $(MAKE) -C nx-X11 $@; fi
+	if test -d nxcompext; then $(MAKE) -C nxcompext $@; fi
+	if test -d nxcompshad; then $(MAKE) -C nxcompshad $@; fi
+
+uninstall:
+	$(MAKE) -C nxcomp $@
+	$(MAKE) -C nxproxy $@
+	if test -d nx-X11; then $(MAKE) -C nx-X11 $@; fi
+	if test -d nxcompext; then $(MAKE) -C nxcompext $@; fi
+	if test -d nxcompshad; then $(MAKE) -C nxcompshad $@; fi