aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..5651d93
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,44 @@
1CFLAGS=-ggdb -Wall
2PREFIX=/usr/local
3BINDIR=$(PREFIX)/bin
4MANDIR=$(PREFIX)/share/man
5PACKAGE=upev
6VERSION=1.0
7DISTFILES=Makefile dircond.c dlist.c
8
9dircond: dircond.c dlist.c
10 cc -odircond $(CFLAGS) dircond.c
11
12install-bin: dircond
13 mkdir -p $(DESTDIR)$(BINDIR)
14 cp dircond $(DESTDIR)$(BINDIR)
15
16install-man:;
17#install-man: dircond.1
18# mkdir -p $(DESTDIR)$(MANDIR)/man1
19# cp dircond.1 $(DESTDIR)$(MANDIR)/man1
20
21install: install-bin install-man
22
23distdir = $(PACKAGE)-$(VERSION)
24
25distdir:
26 rm -rf $(distdir)
27 mkdir $(distdir)
28 cp $(DISTFILES) $(distdir)
29
30dist: distdir
31 tar cfz $(distdir).tar.gz $(distdir)
32 rm -rf $(distdir)
33
34distcheck: distdir
35 mkdir $(distdir)/_inst; \
36 cd $(distdir) || exit 2;\
37 make || exit 2; \
38 make DESTDIR=`pwd`/_inst install || exit 2
39 (cd $(distdir)/_inst; find . -type f)|sort|cut -c2- | \
40 cmp - instlist
41 make dist
42
43clean:
44 rm -f dircond

Return to:

Send suggestions and report system problems to the System administrator.