Skip to content

Commit

Permalink
Makefile cleanup - wmSMPmon
Browse files Browse the repository at this point in the history
Disregard previous patch - forgot to update comment in makefile.
Related to issue window-maker#43.
Next on the list.
  • Loading branch information
drobban authored and crmafra committed Feb 9, 2023
1 parent 995183c commit 886e67e
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions wmSMPmon/wmSMPmon/Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
#(c)1999-2003 redseb
# Adapted for wmSMPmon 2.9.x and higher: Thomas Ribbrock

# Change the following two to determine installation location
BINDIR=/usr/local/bin/
MANDIR=/usr/local/share/man/
# Change the following to determine installation location
MANDIR=/usr/local/share/man

OS := $(shell uname -s)

SRC = general.c wmSMPmon.c
EXE = wmSMPmon
MAN = wmSMPmon.1
OBJ = $(SRC:.c=.o)
INSTALL = /usr/bin/install
prefix = /usr/local
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
MKDIR_P = mkdir -p
INSTALL = install
INSTALL_PROGRAM = $(INSTALL)
INSTALLEXEFLAGS = -m 755 -s
INSTALLMANFLAGS = -m 644
CC = gcc
Expand All @@ -37,6 +41,7 @@ clean:
rm -rf *.o

install:
$(INSTALL) $(INSTALLEXEFLAGS) $(EXE) $(BINDIR)
$(MKDIR_P) $(DESTDIR)$(bindir)
$(INSTALL_PROGRAM) $(INSTALLEXEFLAGS) $(EXE) $(DESTDIR)$(bindir)
$(INSTALL) -d $(MANDIR)/man1
$(INSTALL) $(INSTALLMANFLAGS) $(MAN) $(MANDIR)/man1

0 comments on commit 886e67e

Please sign in to comment.