mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
makefiles: use srcdir
Use -I$(srcdir) as that's what we really want here. For %.pot use all includes.
This commit is contained in:
parent
679f1a9e29
commit
a929606f2b
@ -274,7 +274,7 @@ LIB_VERSION_DM := $(shell $(AWK) -F '.' '{printf "%s.%s",$$1,$$2}' $(top_srcdir)
|
||||
|
||||
LIB_VERSION_APP := $(shell $(AWK) -F '[(). ]' '{printf "%s.%s",$$1,$$4}' $(top_srcdir)/VERSION)
|
||||
|
||||
INCLUDES += -I. -I$(top_builddir)/include
|
||||
INCLUDES += -I$(srcdir) -I$(top_builddir)/include
|
||||
|
||||
INC_LNS = $(top_builddir)/include/.symlinks_created
|
||||
|
||||
@ -414,7 +414,7 @@ endif
|
||||
$(CXX) -c $(INCLUDES) $(DEFS) $(WFLAGS) $(CXXFLAGS) $(CXXFLAGS_$@) $< -o $@
|
||||
|
||||
%.pot: %.c Makefile
|
||||
$(CC) -E $(INCLUDES) -include $(top_builddir)/include/pogen.h \
|
||||
$(CC) -E $(INCLUDES) $(BLKID_CFLAGS) $(VALGRIND_CFLAGS) $(UDEV_CFLAGS) -include $(top_builddir)/include/pogen.h \
|
||||
$(DEFS) $(WFLAGS) $(CFLAGS) $< > $@
|
||||
|
||||
%.so: %.o
|
||||
|
Loading…
Reference in New Issue
Block a user