fix top_srcdir
This commit is contained in:
12
Makefile.in
12
Makefile.in
@@ -108,10 +108,10 @@ HELP_TARGET=w3mhelp.html
|
|||||||
HELP_ALLFILES=w3mhelp-w3m_en.html w3mhelp-w3m_ja.html \
|
HELP_ALLFILES=w3mhelp-w3m_en.html w3mhelp-w3m_ja.html \
|
||||||
w3mhelp-lynx_en.html w3mhelp-lynx_ja.html
|
w3mhelp-lynx_en.html w3mhelp-lynx_ja.html
|
||||||
|
|
||||||
SCRIPTSUBDIRS= scripts scripts/multipart scripts/w3mman
|
SCRIPTSUBDIRS= scripts
|
||||||
SUBDIRS = $(SCRIPTSUBDIRS)
|
SUBDIRS = $(SCRIPTSUBDIRS) w3mimg libwc
|
||||||
|
|
||||||
.PHONY: w3mimg libwc
|
.PHONY: $(SUBDIRS)
|
||||||
|
|
||||||
all: $(TARGETS) all-scripts
|
all: $(TARGETS) all-scripts
|
||||||
|
|
||||||
@@ -212,14 +212,14 @@ install-helpfile:
|
|||||||
all-scripts:
|
all-scripts:
|
||||||
for dir in $(SCRIPTSUBDIRS); \
|
for dir in $(SCRIPTSUBDIRS); \
|
||||||
do \
|
do \
|
||||||
(cd $(top_srcdir)/$$dir && $(MAKE) $(MAKE_ARGS)); \
|
(cd $$dir && $(MAKE) $(MAKE_ARGS)); \
|
||||||
done
|
done
|
||||||
|
|
||||||
install-scripts: all-scripts
|
install-scripts: all-scripts
|
||||||
topdir=`pwd`; \
|
topdir=`pwd`; \
|
||||||
for dir in $(SCRIPTSUBDIRS); \
|
for dir in $(SCRIPTSUBDIRS); \
|
||||||
do \
|
do \
|
||||||
(cd $(top_srcdir)/$$dir && $(MAKE) $(MAKE_ARGS) install); \
|
(cd $$dir && $(MAKE) $(MAKE_ARGS) install); \
|
||||||
done
|
done
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
@@ -241,7 +241,7 @@ uninstall:
|
|||||||
-$(RM) -f $(mandir)/ja/man1/$(MAN1_TARGET)
|
-$(RM) -f $(mandir)/ja/man1/$(MAN1_TARGET)
|
||||||
-for dir in $(SCRIPTSUBDIRS); \
|
-for dir in $(SCRIPTSUBDIRS); \
|
||||||
do \
|
do \
|
||||||
(cd $(top_srcdir)/$$dir && $(MAKE) $(MAKE_ARGS) uninstall); \
|
(cd $$dir && $(MAKE) $(MAKE_ARGS) uninstall); \
|
||||||
done
|
done
|
||||||
|
|
||||||
clean: sweep
|
clean: sweep
|
||||||
|
@@ -6,7 +6,7 @@ top_srcdir=@top_srcdir@
|
|||||||
VPATH=$(srcdir):.
|
VPATH=$(srcdir):.
|
||||||
LIBRARY = libwc.a
|
LIBRARY = libwc.a
|
||||||
CC=@CC@
|
CC=@CC@
|
||||||
CFLAGS = $(TOP_CFLAGS) @WCCFLAGS@
|
CFLAGS = $(TOP_CFLAGS) @WCCFLAGS@
|
||||||
AR=ar
|
AR=ar
|
||||||
RANLIB=@RANLIB@
|
RANLIB=@RANLIB@
|
||||||
RM=rm
|
RM=rm
|
||||||
|
@@ -14,7 +14,7 @@ IMGCFLAGS=@IMGX11CFLAGS@ @IMGFBCFLAGS@
|
|||||||
all: w3mimg.o fb x11
|
all: w3mimg.o fb x11
|
||||||
|
|
||||||
w3mimg.o: w3mimg.c
|
w3mimg.o: w3mimg.c
|
||||||
$(CC) $(CFLAGS) $(IMGCFLAGS) -I$(top_srcdir) -c $<
|
$(CC) $(CFLAGS) $(IMGCFLAGS) -I.. -I$(top_srcdir) -I$(srcdir) -c $<
|
||||||
|
|
||||||
fb x11:
|
fb x11:
|
||||||
cd $@ && $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)"
|
cd $@ && $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)"
|
||||||
|
@@ -15,13 +15,13 @@ OBJS=fb.o fb_img.o
|
|||||||
all: fb_w3mimg.o fb.o fb_img.o
|
all: fb_w3mimg.o fb.o fb_img.o
|
||||||
|
|
||||||
fb_w3mimg.o: fb_w3mimg.c
|
fb_w3mimg.o: fb_w3mimg.c
|
||||||
$(CC) $(CFLAGS) $(IMGCFLAGS) -I$(top_srcdir) -c $<
|
$(CC) $(CFLAGS) $(IMGCFLAGS) -I../.. -I$(top_srcdir) -I$(srcdir) -c $<
|
||||||
|
|
||||||
fb.o: fb.c
|
fb.o: fb.c
|
||||||
$(CC) $(CFLAGS) $(IMGCFLAGS) -I$(top_srcdir) -c $<
|
$(CC) $(CFLAGS) $(IMGCFLAGS) -I../.. -I$(top_srcdir) -I$(srcdir) -c $<
|
||||||
|
|
||||||
fb_img.o: fb_img.c fb_gdkpixbuf.c fb_imlib2.c
|
fb_img.o: fb_img.c fb_gdkpixbuf.c fb_imlib2.c
|
||||||
$(CC) $(CFLAGS) $(IMGCFLAGS) -I$(top_srcdir) -c $<
|
$(CC) $(CFLAGS) $(IMGCFLAGS) -I../.. -I$(top_srcdir) -I$(srcdir) -c $<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@-$(RM) -f *.o
|
@-$(RM) -f *.o
|
||||||
|
@@ -15,7 +15,7 @@ OBJS=x11_w3mimg.o
|
|||||||
all: x11_w3mimg.o
|
all: x11_w3mimg.o
|
||||||
|
|
||||||
x11_w3mimg.o: x11_w3mimg.c
|
x11_w3mimg.o: x11_w3mimg.c
|
||||||
$(CC) $(CFLAGS) $(IMGCFLAGS) -I$(top_srcdir) -c $<
|
$(CC) $(CFLAGS) $(IMGCFLAGS) -I../.. -I$(top_srcdir) -I$(srcdir) -c $<
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@-$(RM) -f *.o
|
@-$(RM) -f *.o
|
||||||
|
Reference in New Issue
Block a user