Remove makefile function which attempted to install files

directly (not compatible with packaging).
Last-Update: 2010-02-20

Gbp-Pq: Name makefile-update
This commit is contained in:
Christopher Martin 2022-05-14 03:32:58 +08:00 committed by openKylinBot
parent 2f96fa0367
commit 9663f34954
1 changed files with 1 additions and 14 deletions

View File

@ -1,4 +1,4 @@
SUBDIRS=jax @getopt@ @mdetect@ @gpm_imwheel@
SUBDIRS=jax getopt @mdetect@ @gpm_imwheel@
bin_PROGRAMS=imwheel
@ -22,19 +22,6 @@ dist-hook:
find $(distdir) -name CVS -exec rm -rvf '{}' ';' ; \
done
ETCDIR=/etc/X11/imwheel
install-exec-hook:
if SUID
progname=$(DESTDIR)$(bindir)/`echo imwheel|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'` ; \
chown @suid@ $$progname ; \
chmod u+s $$progname
endif
$(mkinstalldirs) $(ETCDIR)
-[ -f /etc/imwheelrc ] && mv /etc/imwheelrc $(ETCDIR)/imwheelrc || true
-[ -f /etc/X11/imwheelrc ] && mv /etc/X11/imwheelrc $(ETCDIR)/imwheelrc || true
-[ -f $(ETCDIR)/imwheelrc ] && install -m 644 imwheelrc $(ETCDIR)/imwheelrc.new || install -m 644 imwheelrc $(ETCDIR)/imwheelrc
extras: $(EXTRA_PROGRAMS)
if NO_GPM_DOC