blob: 3cc209dcf1ae8ffbcf86a61bf7c8a0d4a9b1217e (
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
|
perldir = $(pkgdatadir)
E_PREFIX := $(shell portageq envvar EPREFIX 2>/dev/null)
sbin_SCRIPTS = ufed
pkglibexec_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
man_MANS = ufed.8
EXTRA_DIST = ufed.pl.in ufed.8.in
CLEANFILES = $(sbin_SCRIPTS) $(man_MANS)
ufed: $(top_srcdir)/ufed.pl.in
rm -f ufed.tmp && \
$(SED) \
-e 's|XX_PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \
-e 's|XX_PERL[@]|$(PERL)|g' \
-e 's|XX_pkglibexecdir[@]|$(pkglibexecdir)|g' \
-e 's|XX_perldir[@]|$(perldir)|g' \
$(top_srcdir)/ufed.pl.in >ufed.tmp && \
mv ufed.tmp ufed
ufed.8: $(top_srcdir)/ufed.8.in
rm -f ufed.8.tmp && \
$(SED) \
-e 's|@GENTOO_PORTAGE_EPREFIX@|$(E_PREFIX)|g' \
$(top_srcdir)/ufed.8.in >ufed.8.tmp && \
mv ufed.8.tmp ufed.8
|