summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'gtk')
-rw-r--r--gtk/INSTALL5
-rw-r--r--gtk/module.defs14
-rw-r--r--gtk/module.rules34
3 files changed, 52 insertions, 1 deletions
diff --git a/gtk/INSTALL b/gtk/INSTALL
index 5458714e1..d3c5b40a9 100644
--- a/gtk/INSTALL
+++ b/gtk/INSTALL
@@ -2,7 +2,7 @@ Installation Instructions
*************************
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
-2006 Free Software Foundation, Inc.
+2006, 2007 Free Software Foundation, Inc.
This file is free documentation; the Free Software Foundation gives
unlimited permission to copy, distribute and modify it.
@@ -67,6 +67,9 @@ The simplest way to compile this package is:
all sorts of other programs in order to regenerate files that came
with the distribution.
+ 6. Often, you can also type `make uninstall' to remove the installed
+ files again.
+
Compilers and Options
=====================
diff --git a/gtk/module.defs b/gtk/module.defs
new file mode 100644
index 000000000..d3b86310e
--- /dev/null
+++ b/gtk/module.defs
@@ -0,0 +1,14 @@
+$(eval $(call import.MODULE.defs,GTK,gtk,LIBHB))
+
+GTK.src/ = $(PROJECT/)gtk/
+GTK.build/ = $(BUILD/)gtk/
+
+GTK.CONFIGURE.stamp = $(GTK.build/).stamp.configure
+GTK.BUILD.stamp = $(GTK.build/).stamp.build
+
+###############################################################################
+
+GTK.out += $(GTK.CONFIGURE.stamp)
+GTK.out += $(GTK.BUILD.stamp)
+
+BUILD.out += $(GTK.out)
diff --git a/gtk/module.rules b/gtk/module.rules
new file mode 100644
index 000000000..3cc655923
--- /dev/null
+++ b/gtk/module.rules
@@ -0,0 +1,34 @@
+$(eval $(call import.MODULE.rules,GTK))
+
+build: gtk.build
+clean: gtk.clean
+
+gtk.configure: $(GTK.CONFIGURE.stamp)
+
+gtk.build: $(GTK.BUILD.stamp)
+
+$(GTK.CONFIGURE.stamp): | $(dir $(GTK.CONFIGURE.stamp))
+ set -e; cd $(GTK.src/); NOCONFIGURE=1 ./autogen.sh
+ set -e; cd $(GTK.build/); $(call fn.ABSOLUTE,$(GTK.src/))configure \
+ --with-hb=$(call fn.ABSOLUTE,$(BUILD/))
+ $(TOUCH.exe) $@
+
+$(GTK.BUILD.stamp): $(LIBHB.a)
+$(GTK.BUILD.stamp): | $(dir $(GTK.BUILD.stamp))
+$(GTK.BUILD.stamp): $(GTK.CONFIGURE.stamp)
+ +$(MAKE) -C $(GTK.build/)
+ $(TOUCH.exe) $@
+
+gtk.install:
+ $(MAKE) -C $(GTK.build/) install-strip
+
+gtk.uninstall:
+ $(MAKE) -C $(GTK.build/) uninstall
+
+gtk.clean:
+ $(MAKE) -C $(GTK.build/) clean
+ $(RM.exe) $(GTK.BUILD.stamp)
+
+gtk.xclean:
+ $(RM.exe) -f $(GTK.out)
+ $(RM.exe) -fr $(GTK.build/)