Subversion Repositories public

Rev

Rev 55 | Rev 59 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
45 luk 1
 
2
DATADIR = /var/spool/incron
3
MANPATH = /usr/share/man
57 luk 4
45 luk 5
 
57 luk 6
45 luk 7
 
8
INSTALL = install
9
10
 
11
DEBUG = -g0
12
WARNINGS = -Wall
13
CXXAUX = -pipe
57 luk 14
45 luk 15
 
16
CXXFLAGS = $(OPTIMIZE) $(DEBUG) $(WARNINGS) $(CXXAUX)
57 luk 17
LDFLAGS = $(WARNINGS)
45 luk 18
19
 
20
21
 
22
INCRONTAB_OBJ = ict-main.o incrontab.o inotify-cxx.o strtok.o
23
24
 
25
 
26
27
 
28
	$(CXX) $(LDFLAGS) -o $@ $(INCROND_OBJ)
29
30
 
31
	$(CXX) $(LDFLAGS) -o $@ $(INCRONTAB_OBJ)
32
33
 
34
	$(CXX) -c $(CPPFLAGS) $(CXXFLAGS) -o $@ $<
35
36
 
37
	rm -f $(PROGRAMS)
38
	rm -f *.o
39
40
 
41
42
 
57 luk 43
	[ -d $(PREFIX) ]
45 luk 44
	$(INSTALL) -m 04755 -o $(USER) incrontab $(PREFIX)/bin/
45
	$(INSTALL) -m 0755 incrond $(PREFIX)/sbin/
46
	$(INSTALL) -m 0755 -o $(USER) -d $(DATADIR)
47
48
 
57 luk 49
	$(INSTALL) -m 0755 -d $(MANPATH)/man1
50
	$(INSTALL) -m 0755 -d $(MANPATH)/man5
51
	$(INSTALL) -m 0755 -d $(MANPATH)/man8
52
	$(INSTALL) -m 0644 incrontab.1 $(MANPATH)/man1
53
	$(INSTALL) -m 0644 incrontab.5 $(MANPATH)/man5
54
	$(INSTALL) -m 0644 incrond.8 $(MANPATH)/man8
55
56
 
57
	[ -d $(PREFIX) ]
45 luk 58
	rm -f $(PREFIX)/bin/incrontab
59
	rm -f $(PREFIX)/sbin/incrond
60
61
 
57 luk 62
	rm -f $(MANPATH)/man1/incrontab.1
63
	rm -f $(MANPATH)/man5/incrontab.5
64
	rm -f $(MANPATH)/man8/incrontab.8
65
45 luk 66
 
67
 
57 luk 68
69
 
45 luk 70
71
 
55 luk 72
incrontab.o:	incrontab.cpp incrontab.h inotify-cxx.h strtok.h
45 luk 73
inotify-cxx.o:	inotify-cxx.cpp inotify-cxx.h
74
usertable.o:	usertable.cpp usertable.h strtok.h
75
ict-main.o:	ict-main.cpp incrontab.h incron.h
55 luk 76
strtok.o:	strtok.cpp strtok.h
45 luk 77