Files
mt-st/Makefile
Kai Mäkisara 11875969cd Backdated import of mt-st version 0.8
This is an import of the mt-st upstream release 0.8 as it appeared in
the Debian archives.
2015-05-16 17:33:19 +02:00

30 lines
701 B
Makefile

CFLAGS= -Wall -O2
SBINDIR= /sbin
BINDIR= /bin
MANDIR= /usr/share/man
all: mt stinit
mt: mt.c
$(CC) $(CFLAGS) -o mt mt.c
stinit: stinit.c
$(CC) $(CFLAGS) -o stinit stinit.c
install: mt stinit
install -s mt $(BINDIR)
install -c -m 444 mt.1 $(MANDIR)/man1
(if [ -f $(MANDIR)/man1/mt.1.gz ] ; then \
rm -f $(MANDIR)/man1/mt.1.gz; gzip $(MANDIR)/man1/mt.1; fi)
install -s stinit $(SBINDIR)
install -c -m 444 stinit.8 $(MANDIR)/man8
(if [ -f $(MANDIR)/man8/stinit.8.gz ] ; then \
rm -f $(MANDIR)/man8/stinit.8.gz; gzip $(MANDIR)/man8/stinit.8; fi)
dist: clean
(mydir=`basename \`pwd\``;\
cd .. && tar cvvf - $$mydir | gzip -9 > $${mydir}.tar.gz)
clean:
rm -f *~ \#*\# *.o mt stinit