Skip to content

Commit

Permalink
allow for easy disabling consoletype program
Browse files Browse the repository at this point in the history
  • Loading branch information
haubi committed Apr 4, 2017
1 parent f6f5b7d commit a7159d4
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,21 @@ ROOTLIBEXECDIR ?= $(ROOTPREFIX)/lib/gentoo
PREFIX ?= /usr
MANDIR ?= $(PREFIX)/share/man

PROGRAMS = consoletype
PROGRAM_consoletype ?= consoletype

PROGRAMS = $(PROGRAM_consoletype)

all: $(PROGRAMS)

install: all
install -m 0755 -d $(DESTDIR)$(ROOTSBINDIR)
install -m 0755 consoletype $(DESTDIR)$(ROOTSBINDIR)
install -m 0755 -d $(DESTDIR)$(ROOTLIBEXECDIR)
install -m 0644 functions.sh $(DESTDIR)$(ROOTLIBEXECDIR)
install -m 0755 -d $(DESTDIR)$(MANDIR)/man1
install -m 0644 consoletype.1 $(DESTDIR)$(MANDIR)/man1
for p in $(PROGRAMS) ; do \
install -m 0755 -d $(DESTDIR)$(ROOTSBINDIR) ; \
install -m 0755 $${p} $(DESTDIR)$(ROOTSBINDIR) ; \
install -m 0755 -d $(DESTDIR)$(MANDIR)/man1 ; \
install -m 0644 $${p}.1 $(DESTDIR)$(MANDIR)/man1 ; \
done

clean:
rm -rf $(PROGRAMS)
Expand Down

0 comments on commit a7159d4

Please sign in to comment.