-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makefile's contains a number of deprecated constructs. These changes fix autotools hacks and remove duplicate variables. Signed-off-by: Alexey Gladkov <[email protected]>
- Loading branch information
Showing
53 changed files
with
228 additions
and
304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# SPDX-License-Identifier: LGPL-2.0-or-later | ||
# | ||
# Copyright (C) 2024 Alexey Gladkov <[email protected]> | ||
# | ||
|
||
DEFINE_PATHS = \ | ||
-DDATADIR=\"$(datadir)\" \ | ||
-DLOCALEDIR=\"$(localedir)\" \ | ||
-DDEFMAP=\"$(DEFKEYMAP)\" \ | ||
-DKERNDIR=\"$(KERNELDIR)\" | ||
|
||
AM_CPPFLAGS = \ | ||
$(CODE_COVERAGE_CPPFLAGS) \ | ||
$(DEFINE_PATHS) \ | ||
-I$(top_srcdir)/src/libcommon \ | ||
-I$(top_srcdir)/src/libkeymap \ | ||
-I$(top_srcdir)/src/libkbdfile \ | ||
-I$(top_srcdir)/src/libkfont | ||
|
||
AM_CFLAGS = $(CODE_COVERAGE_CFLAGS) | ||
LDADD = $(CODE_COVERAGE_LIBS) | ||
|
||
SUFFIXES = .gen | ||
|
||
V_GEN_SED = $(V_GEN_SED_$(V)) | ||
V_GEN_SED_ = $(V_GEN_SED_$(AM_DEFAULT_VERBOSITY)) | ||
V_GEN_SED_0 = @echo " SED " $@; | ||
V_GEN_SED_1 = | ||
|
||
%: %.gen Makefile | ||
$(V_GEN_SED)$(SED) \ | ||
-e 's|[@]DATADIR[@]|${datadir}|g' \ | ||
-e 's|[@]DEFKEYMAP[@]|$(DEFKEYMAP)|g' \ | ||
-e 's|[@]KERNELDIR[@]|$(KERNELDIR)|g' \ | ||
-e 's|[@]VERSION[@]|$(VERSION)|g' \ | ||
-e 's|[@]KEYMAPDIR[@]|$(KEYMAPDIR)|g' \ | ||
-e 's|[@]UNIMAPDIR[@]|$(UNIMAPDIR)|g' \ | ||
-e 's|[@]TRANSDIR[@]|$(TRANSDIR)|g' \ | ||
-e 's|[@]VIDEOMODEDIR[@]|$(VIDEOMODEDIR)|g' \ | ||
-e 's|[@]FONTDIR[@]|$(FONTDIR)|g' \ | ||
-e 's|[@]PARTIALDIR[@]|$(PARTIALDIR)|g' \ | ||
-e 's|[@]prefix[@]|$(prefix)|g' \ | ||
-e 's|[@]exec_prefix[@]|$(exec_prefix)|g' \ | ||
-e 's|[@]libdir[@]|$(libdir)|g' \ | ||
-e 's|[@]includedir[@]|$(includedir)|g' \ | ||
<$< >$@ && \ | ||
chmod --reference=$< $@; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
include $(top_srcdir)/Makefile.common | ||
|
||
gen_MANS = loadunimap.8 mapscrn.8 setfont.8 | ||
dist_man_MANS = getkeycodes.8 kbdrate.8 resizecons.8 setkeycodes.8 \ | ||
showconsolefont.8 setvtrgb.8 $(gen_MANS) | ||
|
||
install-data-hook: | ||
cd $(DESTDIR)$(mandir)/man8 && \ | ||
for f in $(gen_MANS); do \ | ||
$(SED) -e "s#@DATADIR\@#${datadir}#g" "$$f" > "$$f.new"; \ | ||
mv -f -- "$$f.new" "$$f"; \ | ||
done | ||
CLEANFILES = $(gen_MANS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.