aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 8c3fb6ddcc06b0a7a88872c63459f00cc1b520ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# This file is part of swu
# Copyright (C) 2016 Sergey Poznyakoff
#
# Swu is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# Swu is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with swu.  If not, see <http://www.gnu.org/licenses/>.

CFLAGS=
PREFIX=/usr/local
MANDIR=$(PREFIX)/share/man
BINDIR=$(PREFIX)/bin
MAN1DIR=$(MANDIR)/man1

PACKAGE=swu
VERSION=1.0
distdir=$(PACKAGE)-$(VERSION)

DISTFILES=Makefile swu.c swu.1 README

swu: swu.c
	cc -oswu $(CFLAGS) $(CPPFLAGS) swu.c

clean:
	rm -f *.o swu

install: swu
	install -D swu $(DESTDIR)$(BINDIR)/swu
	install -D -m 644 swu.1 $(DESTDIR)$(MAN1DIR)/swu.1

distdir:
	rm -rf $(distdir) && \
	mkdir $(distdir) &&  \
	cp $(DISTFILES) $(distdir)

dist: distdir
	tar cfz $(distdir).tar.gz $(distdir)
	rm -rf $(distdir)

Return to:

Send suggestions and report system problems to the System administrator.