aboutsummaryrefslogtreecommitdiffstats
path: root/soelim/Makefile.mk
blob: 9e2bf763753cbb8d9a57c21ad105b18dd8a00942 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
OBJ = soelim.o

FLAGS =

.c.o:
	$(CC) $(_CFLAGS) $(FLAGS) -c $<

all: soelim soelim.1

soelim: $(OBJ)
	$(CC) $(_CFLAGS) $(_LDFLAGS) $(OBJ) $(LIBS) -o soelim

install:
	$(INSTALL) -c soelim $(ROOT)$(BINDIR)/soelim
	$(STRIP) $(ROOT)$(BINDIR)/soelim
	$(INSTALL) -c -m 644 soelim.1 $(ROOT)$(MANDIR)/man1/soelim.1

clean:
	rm -f $(OBJ) soelim core log *~ soelim.1

mrproper: clean

soelim.1: soelim.1.in
	sed 's"/usr/ucblib/doctools/tmac/"$(ROOT)$(MACDIR)/"' soelim.1.in > $@