File: 0002-Fix-Makefile-to-avoid-recompiling-files-in-usr.patch

package info (click to toggle)
cairo-ocaml 1%3A1.2.0-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 576 kB
  • sloc: ml: 2,086; ansic: 1,656; makefile: 189; sh: 153
file content (26 lines) | stat: -rw-r--r-- 732 bytes parent folder | download | duplicates (2)
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
From: Stephane Glondu <steph@glondu.net>
Date: Tue, 2 Aug 2011 15:34:21 +0200
Subject: Fix Makefile to avoid recompiling files in /usr

The "-I /path/to/lablgtk2" option should not be used when calling
ocamldep, otherwise files there are considered as possible targets by
the build system.

Signed-off-by: Stephane Glondu <steph@glondu.net>
---
 src/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Makefile b/src/Makefile
index 46a62f6..c9c64b7 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -117,7 +117,7 @@ clean :
 
 .depend : $(wildcard *.ml *.mli)
 	@echo "making deps"
-	@$(OCAMLDEP) $(if $(LABLGTKDIR),-I $(LABLGTKDIR)) $^ > $@
+	@$(OCAMLDEP) $^ > $@
 
 -include .depend
 -include .depend_c