Skip to content

Commit

Permalink
allow for easy disabling consoletype program
Browse files Browse the repository at this point in the history
Although consoletype can be built with MSVC, it is of less use there.
  • Loading branch information
haubi committed Jan 19, 2018
1 parent 5f9b937 commit 0841a61
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 0841a61

Please sign in to comment.