dockapps/wmload/Makefile
Doug Torrance 9f1c62ec91 wmload: Add manpage from Debian.
Slightly modified from [1].  Also modify Makefile to install manpage.

[1] http://manned.org/wmload/a214d0b5/src
2015-04-07 08:54:07 +01:00

22 lines
458 B
Makefile

OBJS = wmload.o
LIBS = -lX11 -lXpm -lXext -lm
PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
MANDIR = $(PREFIX)/share/man/man1
INSTALL = install
%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
wmload: $(OBJS)
$(CC) $(LDFLAGS) -o wmload $(OBJS) $(LIBS)
clean:
rm -f $(OBJS) wmload
install: wmload
$(INSTALL) -d $(DESTDIR)$(BINDIR)
$(INSTALL) wmload $(DESTDIR)$(BINDIR)
$(INSTALL) -d $(DESTDIR)$(MANDIR)
$(INSTALL) -m 644 wmload.1 $(DESTDIR)$(MANDIR)