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 \
|
||||
w3mhelp-lynx_en.html w3mhelp-lynx_ja.html
|
||||
|
||||
SCRIPTSUBDIRS= scripts scripts/multipart scripts/w3mman
|
||||
SUBDIRS = $(SCRIPTSUBDIRS)
|
||||
SCRIPTSUBDIRS= scripts
|
||||
SUBDIRS = $(SCRIPTSUBDIRS) w3mimg libwc
|
||||
|
||||
.PHONY: w3mimg libwc
|
||||
.PHONY: $(SUBDIRS)
|
||||
|
||||
all: $(TARGETS) all-scripts
|
||||
|
||||
@@ -212,14 +212,14 @@ install-helpfile:
|
||||
all-scripts:
|
||||
for dir in $(SCRIPTSUBDIRS); \
|
||||
do \
|
||||
(cd $(top_srcdir)/$$dir && $(MAKE) $(MAKE_ARGS)); \
|
||||
(cd $$dir && $(MAKE) $(MAKE_ARGS)); \
|
||||
done
|
||||
|
||||
install-scripts: all-scripts
|
||||
topdir=`pwd`; \
|
||||
for dir in $(SCRIPTSUBDIRS); \
|
||||
do \
|
||||
(cd $(top_srcdir)/$$dir && $(MAKE) $(MAKE_ARGS) install); \
|
||||
(cd $$dir && $(MAKE) $(MAKE_ARGS) install); \
|
||||
done
|
||||
|
||||
uninstall:
|
||||
@@ -241,7 +241,7 @@ uninstall:
|
||||
-$(RM) -f $(mandir)/ja/man1/$(MAN1_TARGET)
|
||||
-for dir in $(SCRIPTSUBDIRS); \
|
||||
do \
|
||||
(cd $(top_srcdir)/$$dir && $(MAKE) $(MAKE_ARGS) uninstall); \
|
||||
(cd $$dir && $(MAKE) $(MAKE_ARGS) uninstall); \
|
||||
done
|
||||
|
||||
clean: sweep
|
||||
|
@@ -6,7 +6,7 @@ top_srcdir=@top_srcdir@
|
||||
VPATH=$(srcdir):.
|
||||
LIBRARY = libwc.a
|
||||
CC=@CC@
|
||||
CFLAGS = $(TOP_CFLAGS) @WCCFLAGS@
|
||||
CFLAGS = $(TOP_CFLAGS) @WCCFLAGS@
|
||||
AR=ar
|
||||
RANLIB=@RANLIB@
|
||||
RM=rm
|
||||
|
@@ -14,7 +14,7 @@ IMGCFLAGS=@IMGX11CFLAGS@ @IMGFBCFLAGS@
|
||||
all: w3mimg.o fb x11
|
||||
|
||||
w3mimg.o: w3mimg.c
|
||||
$(CC) $(CFLAGS) $(IMGCFLAGS) -I$(top_srcdir) -c $<
|
||||
$(CC) $(CFLAGS) $(IMGCFLAGS) -I.. -I$(top_srcdir) -I$(srcdir) -c $<
|
||||
|
||||
fb x11:
|
||||
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
|
||||
|
||||
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
|
||||
$(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
|
||||
$(CC) $(CFLAGS) $(IMGCFLAGS) -I$(top_srcdir) -c $<
|
||||
$(CC) $(CFLAGS) $(IMGCFLAGS) -I../.. -I$(top_srcdir) -I$(srcdir) -c $<
|
||||
|
||||
clean:
|
||||
@-$(RM) -f *.o
|
||||
|
@@ -15,7 +15,7 @@ OBJS=x11_w3mimg.o
|
||||
all: x11_w3mimg.o
|
||||
|
||||
x11_w3mimg.o: x11_w3mimg.c
|
||||
$(CC) $(CFLAGS) $(IMGCFLAGS) -I$(top_srcdir) -c $<
|
||||
$(CC) $(CFLAGS) $(IMGCFLAGS) -I../.. -I$(top_srcdir) -I$(srcdir) -c $<
|
||||
|
||||
clean:
|
||||
@-$(RM) -f *.o
|
||||
|
Reference in New Issue
Block a user