about summary refs log tree commit diff
path: root/converter/other/jpeg2000/Makefile
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2006-09-23 22:11:37 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2006-09-23 22:11:37 +0000
commit828446fcb6e397de339f36ace9e84ac608c16c06 (patch)
tree016a54fcb06e4e57e78a429ae8e9e473db614ca9 /converter/other/jpeg2000/Makefile
parent0b1d0f960b66463943492d1123e82fe550d36e8d (diff)
downloadnetpbm-mirror-828446fcb6e397de339f36ace9e84ac608c16c06.tar.gz
netpbm-mirror-828446fcb6e397de339f36ace9e84ac608c16c06.tar.xz
netpbm-mirror-828446fcb6e397de339f36ace9e84ac608c16c06.zip
Fix build with separate build directory
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@67 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/jpeg2000/Makefile')
-rw-r--r--converter/other/jpeg2000/Makefile10
1 files changed, 2 insertions, 8 deletions
diff --git a/converter/other/jpeg2000/Makefile b/converter/other/jpeg2000/Makefile
index c5e74361..92225818 100644
--- a/converter/other/jpeg2000/Makefile
+++ b/converter/other/jpeg2000/Makefile
@@ -18,7 +18,7 @@ endif
 # INTERNAL_JASPERLIB must be relative to the current directory, because it
 # may end up in MERGE_OBJECTS, which must be relative.
 INTERNAL_JASPERLIB = libjasper/libjasper.a
-INTERNAL_JASPERHDR_DIR = libjasper/include
+INTERNAL_JASPERHDR_DIR = $(SRCDIR)/$(SUBDIR)/libjasper/include
 
 ifeq ($(JASPERLIB),$(INTERNAL_JASPERLIB))
   ifeq ($(HAVE_INT64),Y)
@@ -63,15 +63,9 @@ $(BINARIES): %: %.o $(JASPERLIB_DEP) $(NETPBMLIB) $(LIBOPT)
 	$(LD) $(LDFLAGS) $(MATHLIB) $(LDLIBS) -o $@ $< \
 	  $(LIBOPTS) $(JASPERDEPLIBS) -lm $(RPATH) $(LADD)
 
-$(INTERNAL_JASPERLIB): FORCE
+$(INTERNAL_JASPERLIB): $(BUILDDIR)/$(SUBDIR)/libjasper FORCE
 	$(MAKE) -f $(SRCDIR)/$(SUBDIR)/libjasper/Makefile \
 	   -C $(dir $@) $(notdir $@)
 
-clean: localclean
-
-.PHONY: localclean
-localclean:
-	$(MAKE) -f $(SRCDIR)/$(SUBDIR)/libjasper/Makefile -C libjasper clean
-
 .PHONY: FORCE
 FORCE: