1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-24 15:12:32 +01:00
Files
wmaker/wmlib/Makefile.am
Doug Torrance bf6f81434b wmlib: Remove install-exec-local target.
This was made redundant by defining pkgconfigdir and pkgconfig_DATA.  On
some systems (with automake < 1.15), this caused a build failure, e.g., [1]:

/usr/bin/install -c -m 644 wmlib.pc /«BUILDDIR»/wmaker-0.95.7+201601230517/
 debian/tmp/usr/lib/x86_64-linux-gnu/pkgconfig/
/usr/bin/install -c -m 644 wmlib.pc '/«BUILDDIR»/wmaker-0.95.7+201601230517/
 debian/tmp/usr/lib/x86_64-linux-gnu/pkgconfig'
/usr/bin/install: cannot create regular file '/«BUILDDIR»/
 wmaker-0.95.7+201601230517/debian/tmp/usr/lib/x86_64-linux-gnu/pkgconfig/
 wmlib.pc': File exists

Also change the definition of DISTCLEANFILES to pkgconfig_DATA to match
the Makefiles for WINGs and wrlib.

[1] https://launchpadlibrarian.net/234989800/
 buildlog_ubuntu-precise-amd64.wmaker_0.95.7+201601230517-0ppa201601211606~
 ubuntu12.04.1_BUILDING.txt.gz
2016-01-23 09:36:53 -05:00

34 lines
682 B
Makefile

AUTOMAKE_OPTIONS = no-dependencies
libWMaker_la_LDFLAGS = -version-info 1:1:0
lib_LTLIBRARIES = libWMaker.la
include_HEADERS = WMaker.h
AM_CPPFLAGS = $(DFLAGS) @XCFLAGS@
libWMaker_la_LIBADD = -lX11
libWMaker_la_SOURCES = \
menu.c \
app.c \
event.c \
command.c \
app.h \
menu.h
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = wmlib.pc
DISTCLEANFILES = $(pkgconfig_DATA)
wmlib.pc: Makefile
@echo "Generating $@"
@echo 'Name: wmlib' > $@
@echo 'Description: Window Maker interface definitions' >> $@
@echo 'Version: $(VERSION)' >> $@
@echo 'Requires: x11' >> $@
@echo 'Libs: $(lib_search_path) -lWMaker' >> $@
@echo 'Cflags: $(inc_search_path)' >> $@