Subversion Repositories public

Rev

Rev 57 | Rev 61 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 57 Rev 59
Line 1... Line 1...
1
PREFIX = /usr/local
1
PREFIX = /usr/local
2
DATADIR = /var/spool/incron
2
DATADIR = /var/spool/incron
3
MANPATH = /usr/share/man
3
MANPATH = /usr/share/man
4
4
RELEASE = incron-`cat VERSION`
-
 
5
RELEASEDIR = /tmp/$(RELEASE)
-
 
6
5
USER = root
7
USER = root
6
8
7
CXX = g++
9
CXX = g++
8
INSTALL = install
10
INSTALL = install
9
11
Line 62... Line 64...
62
	rm -f $(MANPATH)/man1/incrontab.1
64
	rm -f $(MANPATH)/man1/incrontab.1
63
	rm -f $(MANPATH)/man5/incrontab.5
65
	rm -f $(MANPATH)/man5/incrontab.5
64
	rm -f $(MANPATH)/man8/incrontab.8
66
	rm -f $(MANPATH)/man8/incrontab.8
65
67
66
68
release:
-
 
69
	mkdir -p $(RELEASEDIR)
-
 
70
	cp -r doc $(RELEASEDIR)
-
 
71
	cp *.h $(RELEASEDIR)
-
 
72
	cp *.cpp $(RELEASEDIR)
-
 
73
	cp Makefile CHANGELOG COPYING LICENSE-GPL LICENSE-LGPL LICENSE-X11 README TODO VERSION $(RELEASEDIR)
-
 
74
	cp incrond.8 incrontab.1 incrontab.5 $(RELEASEDIR)
-
 
75
	tar -c -f $(RELEASE).tar -C $(RELEASEDIR)/.. $(RELEASE)
-
 
76
	bzip2 -9 $(RELEASE).tar
-
 
77
	tar -c -f $(RELEASE).tar -C $(RELEASEDIR)/.. $(RELEASE)
-
 
78
	gzip --best $(RELEASE).tar
-
 
79
	echo #!/bin/sh > myzip
-
 
80
	echo cd $(RELEASEDIR)/.. >> myzip
-
 
81
	echo zip -r -9 `pwd`/$(RELEASE).zip $(RELEASE) >> myzip
-
 
82
	chmod 0700 myzip
-
 
83
	./myzip
-
 
84
	rm -f myzip
-
 
85
	sha1sum $(RELEASE).tar.bz2 > sha1.txt
-
 
86
	sha1sum $(RELEASE).tar.gz >> sha1.txt
-
 
87
	sha1sum $(RELEASE).zip >> sha1.txt
-
 
88
	rm -rf $(RELEASEDIR)
-
 
89
-
 
90
release-clean:
-
 
91
	rm -f $(RELEASE).tar.bz2
-
 
92
	rm -f $(RELEASE).tar.gz
-
 
93
	rm -f $(RELEASE).zip
-
 
94
	rm -f sha1.txt
-
 
95
67
.PHONY:	all clean distclean install install-man uninstall uninstall-man
96
.PHONY:	all clean distclean install install-man uninstall uninstall-man release release-clean
68
97
69
.POSIX:
98
.POSIX:
70
99
71
icd-main.o:	icd-main.cpp inotify-cxx.h incrontab.h usertable.h incron.h
100
icd-main.o:	icd-main.cpp inotify-cxx.h incrontab.h usertable.h incron.h
72
incrontab.o:	incrontab.cpp incrontab.h inotify-cxx.h strtok.h
101
incrontab.o:	incrontab.cpp incrontab.h inotify-cxx.h strtok.h
73
inotify-cxx.o:	inotify-cxx.cpp inotify-cxx.h
102
inotify-cxx.o:	inotify-cxx.cpp inotify-cxx.h