summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2009-06-17 00:40:56 +0200
committerSergiu Ivanov <unlimitedscolobb@gmail.com>2009-06-22 15:02:35 +0300
commit6f9fa3e74ed738ae75c53c3968880a4702a6b1ee (patch)
treecd2d358f4b338913a868bf63707b600360c1d99f
parent296a512d27bead5868fa51df5818194459eb9731 (diff)
Don't abuse $(prefix) for finding build-time files.
* Makefile: Simply have GCC #include the needed file -- the current unionfs build system doesn't do any dependency tracking for header files anyway.
-rw-r--r--Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index b180072..e6d907d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,12 @@
# Hurd unionfs
-# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
+#
+# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
+#
# Written by Jeroen Dekkers <jeroen@dekkers.cx>.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or *
+# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
@@ -58,11 +60,11 @@ $(mig-sheader-prefix)%_S.h %Server.c: %.sdefsi
-sheader $(mig-sheader-prefix)$*_S.h -server $*Server.c \
-user /dev/null -header /dev/null < $<
-%.sdefsi: %.defs
- $(CPP) $(CPPFLAGS) $(MIGSFLAGS) $($*-MIGSFLAGS) -DSERVERPREFIX=S_ $< -o $@
-
-vpath %.defs $(prefix)/include/hurd
-
+%.sdefsi:
+ echo '#include <hurd/$*.defs>' | \
+ $(CPP) \
+ $(CPPFLAGS) $(MIGSFLAGS) $($*-MIGSFLAGS) -DSERVERPREFIX=S_ \
+ -x c - -o $@
all: unionfs