aboutsummaryrefslogtreecommitdiff
blob: 20902c1f20af4c5dbdd963be838180ab274e2821 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
bin_SCRIPTS = eselect
EXTRA_DIST = eselect.in

dosed = @SED@ -e 's%\@BASH\@%$(BASH)%g' \
	      -e 's%\@DATADIR\@%$(datadir)%g' \
	      -e 's%\@EPREFIX\@%$(EPREFIX)%g' \
	      -e 's%\@VERSION\@%$(VERSION)$(EXTRAVERSION)%g'

% : %.in
	@echo "Building $@..."
	@$(dosed) $< > $@
	@if test $@ = $(bin_SCRIPTS) ; then \
		chmod +x $@ ; \
	fi

MAINTAINERCLEANFILES = Makefile.in

install-data-local : $(foreach f, $(symlinks), install-symlink-$(f))

install-symlink-% : install-binSCRIPTS
	ln -snf eselect $(DESTDIR)$(bindir)/$*

CLEANFILES = $(bin_SCRIPTS)