Commit 7f7cb5d8 authored by Mike Gabriel's avatar Mike Gabriel

more simplification of the main Makefile

parent eb5ef91b
...@@ -5,50 +5,35 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> ...@@ -5,50 +5,35 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Last-Update: 2011-12-31 Last-Update: 2011-12-31
--- /dev/null --- /dev/null
+++ b/Makefile +++ b/Makefile
@@ -0,0 +1,46 @@ @@ -0,0 +1,31 @@
+#!/usr/bin/make -f +#!/usr/bin/make -f
+ +
+all: build +all: build
+ +
+build: build-arch build-indep +build-lite:
+ + cd nxcomp && autoconf && ./configure && $(MAKE)
+clean: + cd nxproxy && autoconf && ./configure && $(MAKE)
+ $(MAKE) -C nxcomp $@ +
+ $(MAKE) -C nxproxy $@ +build-full:
+ if test -d nx-X11; then $(MAKE) -C nx-X11 $@; fi +# in the full case, we rely on "magic" in the nx-X11 imake-based makefiles...
+ if test -d nxcompext; then $(MAKE) -C nxcompext $@; fi + cd nxcomp && autoconf && ./configure
+ if test -d nxcompshad; then $(MAKE) -C nxcompshad $@; fi + cd nxcompext && autoconf
+ + cd nxcompshad && autoconf
+distclean: + cd nx-X11 && $(MAKE) World
+ $(MAKE) -C nxcomp $@ + cd nxproxy && autoconf && ./configure && $(MAKE)
+ $(MAKE) -C nxproxy $@ +
+ if test -d nx-X11; then $(MAKE) -C nx-X11 $@; fi +build:
+ if test -d nxcompext; then $(MAKE) -C nxcompext $@; fi + if ! test -d nx-X11; then \
+ if test -d nxcompshad; then $(MAKE) -C nxcompshad $@; fi + $(MAKE) build-lite; \
+
+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 \ + else \
+ cd nxcomp && autoconf && ./configure && make; cd ..; \ + $(MAKE) build-full; \
+ fi + fi
+ cd nxproxy && autoconf && ./configure && make; cd ..
+
+build-indep:
+ +
+install: +%:
+ $(MAKE) -C nxcomp $@ + $(MAKE) -C nxcomp $@
+ $(MAKE) -C nxproxy $@ + $(MAKE) -C nxproxy $@
+ if test -d nx-X11; then $(MAKE) -C nx-X11 $@; fi + if test -d nx-X11; then \
+ if test -d nxcompext; then $(MAKE) -C nxcompext $@; fi + $(MAKE) -C nxcompext $@; \
+ if test -d nxcompshad; then $(MAKE) -C nxcompshad $@; fi + $(MAKE) -C nxcompshad; \
+ + $(MAKE) -C nx-X11 $@; \
+uninstall: + fi
+ $(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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment