blob: 2e92da4ceb50c7b7ed557c0d3bc14c7089be040a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
PACKAGE_VERSION = @PACKAGE_VERSION@
PERL = @PERL@
libexecdir = @libdir@/@PACKAGE@
perldir = @datadir@/@PACKAGE@
E_PREFIX := $(shell portageq envvar EPREFIX 2>/dev/null)
sbin_SCRIPTS = ufed
libexec_PROGRAMS = ufed-curses
dist_perl_DATA = Portage.pm
ufed_curses_SOURCES = \
ufed-curses.c \
ufed-curses-checklist.c \
ufed-curses-help.c \
ufed-curses-globals.c \
ufed-curses-types.c
ufed_curses_LDADD = $(NCURSES_LIBS)
noinst_HEADERS = \
ufed-curses.h \
ufed-curses-debug.h \
ufed-curses-globals.h \
ufed-curses-help.h \
ufed-curses-types.h
dist_man_MANS = ufed.8
EXTRA_DIST = ufed.pl.in ufed.8.in
ufed: ufed.pl.in
rm -f $@.tmp
sed \
-e 's|XX_PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \
-e 's|XX_PERL[@]|$(PERL)|g' \
-e 's|XX_libexecdir[@]|$(libexecdir)|g' \
-e 's|XX_perldir[@]|$(perldir)|g' \
$< >$@.tmp
chmod +x $@.tmp
mv $@.tmp $@
ufed.8: ufed.8.in
rm -f $@.tmp
sed \
-e 's|@GENTOO_PORTAGE_EPREFIX@|$(E_PREFIX)|g' \
$< >$@.tmp
chmod +x $@.tmp
mv $@.tmp $@
|