summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorquinn <quinn@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-10-07 19:16:09 +0000
committerquinn <quinn@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-10-07 19:16:09 +0000
commit33d1de5c10d603c8105a67979cb8e25325c88fad (patch)
tree5e0c5da2e3166a8e2ce5dd1310efbd3ca4281dbf /Makefile
parente6cbd25e0ba65fd6519cf59a73eee1ea1c98bb2f (diff)
downloadmarex-dev-33d1de5c10d603c8105a67979cb8e25325c88fad.tar.gz
marex-dev-33d1de5c10d603c8105a67979cb8e25325c88fad.tar.bz2
* add a basic makefile for all projects, eh, work in progress, kinda replaces makeall.sh
* fix maximizing+wobbly+snap * add toggle to disable the greying of unresponsive windows git-svn-id: file:///beryl/trunk@541 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..83518dc
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,55 @@
+PREFIX?=/usr
+SUCMD?=sudo
+
+modules:=\
+ beryl-core \
+ beryl-plugins \
+ beryl-settings \
+ beryl-manager \
+ emerald \
+ emerald-themes
+
+cfgmodules:=$(patsubst %,%.cfg-stamp,$(modules))
+buildmodules:=$(patsubst %,%.build-stamp,$(modules))
+installmodules:=$(patsubst %,%.inst-stamp,$(modules))
+cleanmodules:=$(patsubst %,%.clean-stamp,$(modules))
+
+all: update rebuild $(buildmodules)
+
+rebuild:
+ rm *.build-stamp
+
+update:
+ svn up
+
+%.clean-stamp:
+ make -C $* clean
+ touch $@
+
+%.build-stamp:
+ rm -f $*.inst-stamp
+ make -C $*
+ touch $@
+ $(SUCMD) make -C $* install
+ touch $*.inst-stamp
+
+%.inst-stamp: %.build-stamp
+ make -C $* install
+ touch $@
+
+%.cfg-stamp:
+ sh -c 'cd $*;./autogen.sh --prefix=$(PREFIX)'
+ rm -f $*.build-stamp
+ rm -f $*.inst-stamp
+ touch $@
+
+configure: $(cfgmodules)
+
+install: $(installmodules)
+
+clean: $(cleanmodules)
+ rm -f *.build-stamp
+ rm -f *.clean-stamp
+
+cfg-clean:
+ rm -f *.cfg-stamp